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

Unprivileged udev #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Unprivileged udev #75

wants to merge 2 commits into from

Conversation

zb140
Copy link
Contributor

@zb140 zb140 commented Sep 4, 2022

After much research and experimentation, I've learned that udev can run without network_mode: host and privileged: true by using nsenter.

nsenter is a bit like chroot, but for namespaces; launching the udev daemon through it will allow udev to see the necessary netlink messages from the host.

I've tested with mouse, keyboard, and controller in both Steam and Retroarch in headless mode, but I don't currently have the equipment to test host-desktop mode (I really gotta fix that 😁). Since host-desktop mode doesn't even run udev I think it shouldn't be affected by this change, but 🤷 .

Edit: meant to add some links to more info about nsenter:

@Sparticuz
Copy link
Contributor

ltgm, do you want to merge this before or after #76

@zb140
Copy link
Contributor Author

zb140 commented Sep 14, 2022

I could go either way. I think #76 still needs some more testing, but at the same time there isn't a pressing reason why this needs to be merged sooner rather than later.

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