-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add support for D-Bus virtual devices #146
base: main
Are you sure you want to change the base?
Conversation
src/virtualdevices/dbus/dbus.rs
Outdated
|
||
object_manager | ||
.inner() | ||
.connect_signal("InterfacesRemoved", move |message| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, zbus should provide a more specific connect_interfaces_removed_signal
here. It'd be actually super trivial to add so I'll do that today. I'll check if other signals are missing from fdo interfaces as well and add them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can track that here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ueno Here you go. If you could test it before I merge, that would be great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I confirm that it works with this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, btw you also don't need .inner()
call since Deref<Target=zbus::Proxy>
is implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zbus 1.8.0 just released has this new API now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks; updated to use it.
dc06312
to
49013dc
Compare
This allows alternative token implementations to use CTAP2 based API, that expects relying party is hashed by the platform, not by the application.
This enables access to authenticator devices through the D-Bus based protocol rather than low-level communication protocols such as USB HID. The main motivation of this is to allow isolated clients (e.g., Firefox Flatpak) to run without unnecessary privileges on the host.
The D-Bus server implementation is mostly done by our colleague Norbert as part of his internship at Red Hat. The protocol is still not fixed, so use my branch if you are interested in testing it.