Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Gentoo #36

Open
jvican opened this issue Apr 27, 2016 · 11 comments
Open

Doesn't work on Gentoo #36

jvican opened this issue Apr 27, 2016 · 11 comments

Comments

@jvican
Copy link

jvican commented Apr 27, 2016

It works perfectly on Mac OSX, but it doesn't on Gentoo, with kernel 4.3.3. I have a Yubikey NEO.

I would really appreciate if you can make it work. A timeout appears and the github site appears not to be responding to the tokens that Yubikey emits.

All the necessary dependencies for yubikey are installed and they work in other platforms (like Yubikey demo site or locally).

It is a great plugin, but support for all OS is key.

Logs:

EB1 sign https://github.com [{version:"U2F_V2", challenge:"HhlDBk6iOVY96cm-DdS4z4iwhFAN6sKbtZDseQEEgm8", keyHandle:"8bDNfLfsp9AF7twjVaoheVhbLVgnLsEz2QIR5b5Ps7uu1pr0z1VCA4PCNMwzWkGWMHCxHCfPh2G7TL9LMjYTTQ", appId:"https://github.com/u2f/trusted_facets"}] null
EB2 /home/jvican/.mozilla/firefox/93cn78cg.default/extensions/[email protected]/bin/linux_x86_64-gcc3/u2f
EB3 ({killed:false, exitCode:(void 0), signalCode:(void 0), stdin:{readable:false, writable:false, encoding:null}, stdout:{readable:false, writable:false, encoding:null}, stderr:{readable:false, writable:false, encoding:null}})
stdin s0012000100e3https://github.com{"version":"U2F_V2","challenge":"HhlDBk6iOVY96cm-DdS4z4iwhFAN6sKbtZDseQEEgm8","keyHandle":"8bDNfLfsp9AF7twjVaoheVhbLVgnLsEz2QIR5b5Ps7uu1pr0z1VCA4PCNMwzWkGWMHCxHCfPh2G7TL9LMjYTTQ","appId":"https://github.com/u2f/trusted_facets"}
EBD i
insert device
showLogsCalled
exit null (void 0)

The exit corresponds to the timeout of Gentoo. It looks like it doesn't recognize my key is already inserted, while my yubikey neo manager and yubikey-personalization-gui do.

@jvican
Copy link
Author

jvican commented Apr 28, 2016

If there's more information that I can attach to help solve this issue let me know. I'm looking forward to see this fixed.

@prefiks
Copy link
Owner

prefiks commented Apr 28, 2016

Hello,

It looks like component that is talking to your u2f device is waiting for your device being inserted (or is not being able to detect it, or something like that).

You can try running that program http://prefiks.org/u2f4moz/linux64/u2f-reg-test, it will try to talk to your device and log all information about that, it should make your device blink, when that happens please click on button on device. This program will generate log-stderr.txt and log-stdout.txt, i would be able to tell more when i see those.

@jvican
Copy link
Author

jvican commented May 4, 2016

My device does blink, and when I touch the button on my Yubikey it outputs a password, but nothing else happens (e.g. the program doesn't finish by itself).

stderr.txt

dupa

stdout.txt

i

@jvican
Copy link
Author

jvican commented May 4, 2016

And, replying to your comment in the another thread, no, I do not have chrome installed.

@prefiks
Copy link
Owner

prefiks commented May 4, 2016

Thank you, that output would suggest that this program was not able to enumerate usb devices, or get stuck trying to do that. I will see if i can get more output from code that does that, and possibly will have update binary for test.

@jvican
Copy link
Author

jvican commented May 4, 2016

Thanks to you, it's great to see good support.

@prefiks
Copy link
Owner

prefiks commented May 5, 2016

I extended test program to manually trying list usb devices that u2f library will try to access: http://prefiks.org/u2f4moz/linux64/u2f-reg-test, as previous version it should generate log-std{out,err}.txt

@jvican
Copy link
Author

jvican commented May 5, 2016

Hi @prefiks, got this:

log-stderr

USB enumerate start
USB enumerate end

log-stdout

i

@jvican
Copy link
Author

jvican commented Jun 3, 2016

Changed my laptop and OS, works perfectly on Arch.

This error was probably caused by security checks of grsecurity or some misbehaviour in Firefox and the way it detects that a USB has been insterted. Thanks for this project, @prefiks.

@KellerFuchs
Copy link

@jvican So, should this issue be closed?

@timmc-bcov
Copy link

Any chance this is #54 (udev rules)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants