Skip to content
Discussion options

You must be logged in to vote

Yes, that's expected, and it's the kernel's user namespace rules rather than anything podman decides on its own.

I ran your three cases on Debian with podman 5.4.2 and a subuid range like yours (100000:65536) and got the same result: the parents owned by 0 and by 300000 fail with statfs ...: permission denied, the one owned by 100999 mounts fine.

What explains it is how those directories look from inside the namespace. podman unshare ls -ldn on the three parents gives:

/tmp/t_in    uid=1000   gid=1000     (host owner 100999)
/tmp/t_out   uid=65534  gid=65534    (host owner 300000)
/tmp/t_root  uid=65534  gid=65534    (host owner 0)

Inside the namespace you are root, but your capabilities…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Barnoux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants