Switch to "mcs" SELinux policy
We're going to want the ability for processes to have unique categories, to enforce separation of container processes. Gentoo's SELinux policy supports both Multi-Category Security and Multi-Level Security modes, although the latter does not seem to work out of the box.master
parent
cb7e0a5819
commit
e9b21b0ca0
|
@ -100,10 +100,10 @@ setfiles \
|
||||||
-F \
|
-F \
|
||||||
-m \
|
-m \
|
||||||
-r /mnt/gentoo \
|
-r /mnt/gentoo \
|
||||||
-c /mnt/gentoo/etc/selinux/strict/policy/policy.* \
|
-c /mnt/gentoo/etc/selinux/mcs/policy/policy.* \
|
||||||
-e /mnt/gentoo/var/db/pkg \
|
-e /mnt/gentoo/var/db/pkg \
|
||||||
-e /mnt/gentoo/etc/portage \
|
-e /mnt/gentoo/etc/portage \
|
||||||
/mnt/gentoo/etc/selinux/strict/contexts/files/file_contexts \
|
/mnt/gentoo/etc/selinux/mcs/contexts/files/file_contexts \
|
||||||
/mnt/gentoo
|
/mnt/gentoo
|
||||||
|
|
||||||
touch /mnt/gentoo/usr
|
touch /mnt/gentoo/usr
|
||||||
|
|
|
@ -12,4 +12,4 @@ SELINUX=enforcing
|
||||||
# mls - Full SELinux protection with Multi-Level Security
|
# mls - Full SELinux protection with Multi-Level Security
|
||||||
# mcs - Full SELinux protection with Multi-Category Security
|
# mcs - Full SELinux protection with Multi-Category Security
|
||||||
# (mls, but only one sensitivity level)
|
# (mls, but only one sensitivity level)
|
||||||
SELINUXTYPE=strict
|
SELINUXTYPE=mcs
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
USE="${USE} -unconfined"
|
||||||
|
POLICY_TYPES=mcs
|
Loading…
Reference in New Issue