1
0
mirror of https://passt.top/passt synced 2024-07-02 07:52:41 +00:00
passt/contrib
Stefano Brivio 62059058cf selinux: Fix user namespace creation after breaking kernel change
Kernel commit ed5d44d42c95 ("selinux: Implement userns_create hook")
seems to just introduce a new functionality, but given that SELinux
implements a form of mandatory access control, introducing the new
permission breaks any application (shipping with SELinux policies)
that needs to create user namespaces, such as passt and pasta for
sandboxing purposes.

Add the new 'allow' rules. They appear to be backward compatible,
kernel-wise, and the policy now requires the new 'user_namespace'
class to build, but that's something distributions already ship.

Reported-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
2023-08-18 13:18:45 +02:00
..
apparmor passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00
fedora fedora: Install pasta as hard link to ensure SELinux file context match 2023-08-18 13:18:34 +02:00
kata-containers Don't abbreviate ip(8) arguments in examples and tests 2022-06-15 09:38:10 +02:00
selinux selinux: Fix user namespace creation after breaking kernel change 2023-08-18 13:18:45 +02:00