Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631096 - app-crypt/libu2f-host - USE=systemd is not properly working
Summary: app-crypt/libu2f-host - USE=systemd is not properly working
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-15 22:56 UTC by Bertrand Jacquin
Modified: 2017-09-23 00:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2017-09-15 22:56:47 UTC
Hi,

I am currently using systemd and app-crypt/libu2f-host build with USE=systemd actually does not allow me to use at all my U2F token.

$ curl 'https://demo.yubico.com/wsapi/u2f/enroll?username=jas&password=foo' > foo
$ u2f-host --debug -aregister -o https://demo.yubico.com < foo > bar
error: u2fh_devs_discover (-5): cannot find U2F device

Building it with USE=-systemd allow me to perform authentication.

Reproducible: Always
Comment 1 Bertrand Jacquin 2017-09-18 23:17:46 UTC
Actually it works with USE=systemd, but default permission on /dev/hidraw* are not letting standard users to read the char device:

$ ls -l /dev/hidraw*
crw------- 1 root root 249, 0 Sep 19 00:04 /dev/hidraw0
crw------- 1 root root 249, 1 Sep 19 00:02 /dev/hidraw1
Comment 2 Bertrand Jacquin 2017-09-23 00:28:49 UTC
This bug is invalid, my X11 session was running outside of a systemd session, hence files created in /dev did not have the right ACL