Created
October 9, 2023 10:59
-
-
Save cardil/d0db7a92a4dd69461359e567678bac01 to your computer and use it in GitHub Desktop.
SElinux prevents bwrap to umount while running in Podman rootless container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELinux is preventing bwrap from unmount access on the filesystem . | |
***** Plugin catchall (100. confidence) suggests ************************** | |
If you believe that bwrap should be allowed unmount access on the filesystem by default. | |
Then you should report this as a bug. | |
You can generate a local policy module to allow this access. | |
Do | |
allow this access for now by executing: | |
# ausearch -c 'bwrap' --raw | audit2allow -M my-bwrap | |
# semodule -X 300 -i my-bwrap.pp | |
Additional Information: | |
Source Context system_u:system_r:container_userns_t:s0:c143,c930 | |
Target Context system_u:object_r:tmpfs_t:s0 | |
Target Objects [ filesystem ] | |
Source bwrap | |
Source Path bwrap | |
Port <Unknown> | |
Host thinkpad-t590 | |
Source RPM Packages | |
Target RPM Packages | |
SELinux Policy RPM selinux-policy-targeted-38.28-1.fc38.noarch | |
Local Policy RPM container-selinux-2.222.0-1.fc38.noarch | |
Selinux Enabled True | |
Policy Type targeted | |
Enforcing Mode Enforcing | |
Host Name thinkpad-t590 | |
Platform Linux thinkpad-t590 6.5.5-200.fc38.x86_64 #1 SMP | |
PREEMPT_DYNAMIC Sun Sep 24 15:52:44 UTC 2023 | |
x86_64 | |
Alert Count 1 | |
First Seen 2023-10-09 12:57:00 CEST | |
Last Seen 2023-10-09 12:57:00 CEST | |
Local ID c78fadf6-f41d-4d1c-a01e-e436373a2789 | |
Raw Audit Messages | |
type=AVC msg=audit(1696849020.58:2380): avc: denied { unmount } for pid=906063 comm="bwrap" scontext=system_u:system_r:container_userns_t:s0:c143,c930 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem permissive=0 | |
Hash: bwrap,container_userns_t,tmpfs_t,filesystem,unmount |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment