Repository navigation
Can userns=auto be used with /dev/shm? #27733
|
I have the following container: When I start it I get the following error in the logs: If I remove the For volume mounts I've got the idmap configured and that is working well, so I'm wondering if there's anything I can do for shm whilst retaining the security of auto userns? |
Replies: 2 comments 1 reply
|
Couple of things to add: This does work rootless with userns set to the default ( It also works rootful with userns set to Ideally I'd like to have |
|
I don't see a difference in permissions between userns=auto or not 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. By default it will use 1024 as size or if the image has files with higher uids than the range to cover all, so if you image at runtime uses hight uids that we cannot know than yes it fails and you must give a size accordingly
https://docs.podman.io/en/latest/markdown/podman-create.1.html#userns-mode |
I don't see a difference in permissions between userns=auto or not
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.