/proc and /sys are owned by nobody inside rootless containers #16558
Replies: 3 comments 11 replies
-
This is controlled by the linux kernel. Within the user namespace we are allowed to mount the following file systems |
Beta Was this translation helpful? Give feedback.
-
It seems to affect nested podman.
|
Beta Was this translation helpful? Give feedback.
-
Is the
|
Beta Was this translation helpful? Give feedback.
-
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When running podman in rootless mode,
/proc
and/sys
are recognized as owned bynobody
, whereas/dev
is correctly recognized as owned byroot
.I discovered this when running
pacman -Qkk
inside an Arch Linux container. It's not a super big issue (who ever checks the owners of these directories except when… checking the integrity of installed packages), but it seems like a bug, so, I figured I'd report it.Steps to reproduce the issue:
podman run -it
ls -lad /proc /sys
Describe the results you received:
You see that
/proc
and/sys
are owned bynobody:nobody
according tols
.Describe the results you expected:
These directories should be mapped to a user that is recognized as root.
Additional information you deem important (e.g. issue happens only occasionally):
N/A
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Just my desktop running Arch.
Beta Was this translation helpful? Give feedback.
All reactions