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
qemu: enable smartcard support #48282
Conversation
Success on x86_64-darwin (full log) Attempted: libcacard, qemu The following builds were skipped because they don't evaluate on x86_64-darwin: spice Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: libcacard, qemu, spice Partial log (click to expand)
|
I'm fine with this change, but just out of curiosity: I use smartcard readers with qemu guests a lot, works well just with spice usb redirection. No need for extra smartcard support in qemu or spice. What additional use cases does this enable? |
Here are docs:
This seems to be able to store keys on the host (instead of smartcard) while only exposing virtual smartcard interface to the guest, thus not leaking any secrets to it. Also, I imagine this will work with both guest and host using the same physical smartcard at the same time, unlike USB redirection. But then, primary reason I'm sending this pull request is because GNOME Boxes expects smartcard support. |
Timed out, unknown build status on x86_64-linux (full log) Attempted: libcacard, qemu, spice Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: libcacard, qemu, spice Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: libcacard, qemu The following builds were skipped because they don't evaluate on x86_64-darwin: spice Partial log (click to expand)
|
Timed out, unknown build status on x86_64-linux (full log) Attempted: libcacard, qemu, spice Partial log (click to expand)
|
Awesome! Maybe we could use this for writing NixOS tests of smartcard functionality? Looks good to me, but haven't tried it yet. Will probably try soon :). |
Motivation for this change
As of GNOME/gnome-boxes@6bf871c, GNOME Boxes only works with QEMU built with smartcard support.
For similar bug elsewhere, see: https://github.com/voidlinux/void-packages/issues/6336
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)