Replies: 2 comments 6 replies
-
The default security model uses xattr to store the linux file permissions, instead of storing them as a separate file. https://wiki.qemu.org/Documentation/9psetup
Preserving symlinks or ownership from the host, was not in the original implementation (i..e default security_model). See https://docs.podman.io/en/latest/markdown/podman-machine-init.1.html |
Beta Was this translation helpful? Give feedback.
-
Please open a PR to change the default. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I configured podman-machine (4.2.1) on macos correctly in order to allow mounting folders from inside user home directory (guide here)
While mounting seems to be working fine, I observed that all symlinked files are reporting broken, even if I only had a relative symlink pointing to the same file.
Based on the image the error could vary a little bit but the idea is kinda the same:
Apparently there is also another problem, I created file from within the container with
touch foo.txt
and when I look at the same file from my macos machine, I seen some weird file permissions:foo.log
was created from mac, and has the correct expected permissions, but the one created from inside the container seems to lack group and others read permissions. Also the@
at the end indicates presence of extended file attributes, something bit unexpected.I do mention that the container was starting using
podman run -v $(pwd):$(pwd) -it quay.io/ansible/creator-ee:latest /bin/bash
, which is a container that usesroot
as default user.I am not sure if that is the source of the problem, but I am looking for a solution where symlinks would work and where newly created files would not have unexpected permissions.
Beta Was this translation helpful? Give feedback.
All reactions