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

Feature request: filter by subsystem for unix-hotplug devices #14373

Open
jonathan-conder opened this issue Oct 30, 2024 · 0 comments
Open

Feature request: filter by subsystem for unix-hotplug devices #14373

jonathan-conder opened this issue Oct 30, 2024 · 0 comments
Assignees
Labels
Improvement Improve to current situation
Milestone

Comments

@jonathan-conder
Copy link

Currently unix-hotplug devices can be detected based on productid and vendorid. It would be great if this could be extended to include subsystem as well.

For example, it would be really convenient to allow containers to access all camera devices with a single command:

lxc config device add u1 cameras unix-hotplug subsystem=video4linux

Or all cameras with a specific vendorid, and so on:

lxc config device add u1 logitechcameras unix-hotplug subsystem=video4linux vendorid=****

Some devices don't currently have product and vendor IDs, so this change would enable those as well. For example fake v4l2loopback devices are useful for testing. My camera also exposes /dev/media0, which belongs to the media subsystem but lacks a product/vendor ID.

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

No branches or pull requests

3 participants