|
|
Log in / Subscribe / Register

One option for dirty frag via selinux, dependent on user cases where ipsec is needed

One option for dirty frag via selinux, dependent on user cases where ipsec is needed

Posted May 20, 2026 21:27 UTC (Wed) by chads (subscriber, #5734)
Parent article: Dirty Frag: a zero-day universal Linux LPE

$ semanage login -a -s staff_u -r s0 user_A

$ cat << 'EOF' > /tmp/deny_userns.cil
(deny staff_t self (user_namespace (create)))
EOF

$ semodule -i /tmp/deny_userns.cil

# Test:
ssh user_A@myhost 'unshare --user --net /bin/true && echo VULNERABLE || echo BLOCKED'
unshare: unshare failed: Permission denied
BLOCKED

$ ./exp
dirtyfrag: failed (rc=1)


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds