Allow xdm_t create user namespaces #2807
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Required with the update of gdk-pixbuf2 using a new pixbuf loaders provided by glycin which are sandboxed.
The commit addresses the following AVC denial:
type=PROCTITLE msg=audit(07/16/2025 06:40:32.057:1066) : proctitle=bwrap --unshare-all --die-with-parent --chdir / --ro-bind /usr /usr --dev /dev --ro-bind-try /etc/ld.so.cache /etc/ld.so.cache -
type=SYSCALL msg=audit(07/16/2025 06:40:32.057:1066) : arch=x86_64 syscall=clone success=no exit=EACCES(Permission denied) a0=0x7e020011 a1=0x0 a2=CLONE_VM|CLONE_SIGHAND|CLONE_VFORK|CLONE_PARENT|CLONE_NEWNS|CLONE_SYSVSEM|CLONE_UNTRACED|CLONE_CHILD_SETTID|CLONE_NEWUTS a3=0x0 items=0 ppid=3561 pid=4135 auid=unset uid=gdm gid=gdm euid=gdm suid=gdm fsuid=gdm egid=gdm sgid=gdm fsgid=gdm tty=tty1 ses=unset comm=bwrap exe=/usr/bin/bwrap subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(07/16/2025 06:40:32.057:1066) : avc: denied { create } for pid=4135 comm=bwrap scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=user_namespace permissive=0
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2380069