-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
mknod fails with operation not permitted with cap-add=all and --privileged #4619
Comments
I assume you're running as a normal user? I don't know if there's anything we can do about this, rootless Podman does not have any privileges a normal user does not have, even with |
I'm running as a regular user yes. I encountered the issue while trying to invoke debootstrap in a ubunto focal podman container. The issue might be more with debootstrap in this case for trying to make device nodes in the first place. |
Yes this is impossible in a root less user. We should add this to the rootless.md as a shortcoming of rootless mode. |
As an aside for others that might read this issue in the future: |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
podman run -dt --cap-add=all --privileged fedora:rawhide /lib/systemd/systemd
podman exec -it -l /bin/bash
yum install coreutils
mknod test c 1 3
Describe the results you received:
mknod: test: Operation not permitted
Describe the results you expected:
Successful
mknod
Additional information you deem important (e.g. issue happens only occasionally):
Physical Arch Linux machine, everything up-to-date.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
podman inspect -l
The text was updated successfully, but these errors were encountered: