Skip to content
Discussion options

You must be logged in to vote

I don't see a difference in permissions between userns=auto or not

$ sudo podman run --userns auto quay.io/libpod/testimage:20241011 ls -ld /dev/shm/
drwxrwxrwt    2 root     root            40 Dec 11 17:26 /dev/shm/
pholzing ~ ✓ $ sudo podman run quay.io/libpod/testimage:20241011 ls -ld /dev/shm/
drwxrwxrwt    2 root     root            40 Dec 11 17:26 /dev/shm/

Invalid argument (EINVAL) is generally not a permission error

It sounds more likely that they try to chown stuff to a uid not mapeed in the userns, you would need to figure out what uid that is if the container doesn't expose that by default.

$ sudo podman run --userns auto  quay.io/libpod/testimage:20241011 sh -c "touch /dev/sh…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@connelhooley
Comment options

Answer selected by connelhooley
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