Skip to content

Propagate udev messages into the container - #13

Merged
nbdd0121 merged 1 commit into
mainfrom
udev
Apr 9, 2025
Merged

Propagate udev messages into the container#13
nbdd0121 merged 1 commit into
mainfrom
udev

Conversation

@nbdd0121

@nbdd0121 nbdd0121 commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

By default, in terms of kobject uevent messages, containers will:

  • Without userns: see kernel messages but not udev messages
  • With userns: see no messages at all

And this creates trouble for libraries such as libusb, which relies on these netlink messages to detect device updates.

We fix this by filling the gap for systemd and send out our own udev messages.

@nbdd0121
nbdd0121 requested a review from pamaury April 9, 2025 11:04
By default, in terms of kobject uevent messages, containers will:
* Without userns: see kernel messages but not udev messages
* With userns: see no messages at all

And this creates trouble for libraries such as libusb, which relies on these
netlink messages to detect device updates.

We fix this by filling the gap for systemd and send out our own udev messages.

@pamaury pamaury left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, although I am really no expert in this area. Definitely a great improvement, thanks :)

@nbdd0121
nbdd0121 merged commit add1ec5 into main Apr 9, 2025
@nbdd0121
nbdd0121 deleted the udev branch April 9, 2025 13:38
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

Successfully merging this pull request may close these issues.

2 participants