-
Notifications
You must be signed in to change notification settings - Fork 814
containers.label_users
is ignored by podman build
#6160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I take it, this works fine with podman run, only breaks with podman build? |
rhatdan
added a commit
to rhatdan/buildah
that referenced
this issue
May 6, 2025
Fixes: containers#6160 label_users tells buildah and podman to maintain the user and role from the SELinux label, the default is to change the user and role to system_u:system_r. With this change we end up with an unconfined_u user running the container as unconfined_u:unconfined_r. Signed-off-by: Daniel J Walsh <[email protected]>
rhatdan
added a commit
to rhatdan/buildah
that referenced
this issue
May 6, 2025
Fixes: containers#6160 label_users tells buildah and podman to maintain the user and role from the SELinux label, the default is to change the user and role to system_u:system_r. With this change we end up with an unconfined_u user running the container as unconfined_u:unconfined_r. I don't believe our CI/CD system can test this, because it runs with system_u:system_r by default. Signed-off-by: Daniel J Walsh <[email protected]>
Yup, correct. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even with
containers.label_users
set totrue
incontainers.conf
,podman build
fails with SELinux permission errors.Reproduction
Logs
Versions
I'm able to reproduce this on both Fedora 41 and Fedora 42:
The text was updated successfully, but these errors were encountered: