prefiks / u2f4moz

U2F support extension for Firefox
GNU Lesser General Public License v2.1
197 stars 15 forks source link

Doesn't work on Gentoo #36

Open jvican opened 8 years ago

jvican commented 8 years ago

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/u2f4moz@prefiks.org/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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

prefiks commented 8 years ago

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 commented 8 years ago

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

prefiks commented 8 years ago

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 commented 8 years ago

Hi @prefiks, got this:

log-stderr

USB enumerate start
USB enumerate end

log-stdout

i
jvican commented 8 years ago

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 commented 8 years ago

@jvican So, should this issue be closed?

timmc-bcov commented 6 years ago

Any chance this is https://github.com/prefiks/u2f4moz/issues/54 (udev rules)?