-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Can't access passed-in character device inside non-root container #4477
Comments
that happens because the rootless user loses the additional groups when entering the container, so you have no access to the dialout group. If you are using crun, there is a workaround in the last version: https://github.com/containers/crun/blob/master/crun.1.md#iocrunkeep_original_groups1 you can enable it through podman with I am going to close the issue as there is not much Podman can do about it, but please feel free to keep commenting here if something is not clear |
Thanks for the pointers. After upgrading to Wouldn't it make sense to update |
Sounds like a good idea, also a blog and add something to troubleshoot.md on the github. |
Fixes containers#4477 Signed-off-by: Stefan Becker <[email protected]>
Please note that in crun >= 0.11 the annnotation has been renamed to |
Update documentation for crun >= 0.11. See containers/crun@6df9308 Fixes containers#4477 Signed-off-by: Stefan Becker <[email protected]>
Update documentation for crun >= 0.11. See containers/crun@6df9308 Fixes containers#4477 Signed-off-by: Stefan Becker <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I'm trying to pass in
/dev/ttyUSB0
into a non-root container using--device /dev/ttyUSB0
. Inside the container opening of/dev/ttyUSB0
always fails withPermission denied
.Steps to reproduce the issue:
/dev/ttyUSB0
as non-root user:Describe the results you expected:
I should be able to access the passed-in character device inside a non-root container
Additional information you deem important (e.g. issue happens only occasionally):
setenforce permissive
doesn't fix the permission problemOutput of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: