Skip to content

Conversation

@nbdd0121
Copy link
Contributor

@nbdd0121 nbdd0121 commented Apr 9, 2025

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.
Copy link

@pamaury pamaury left a comment

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
1 check passed
@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.

3 participants