commit: 2f9ccaa200e55bf476c4c3e77ef548e8cedbf3b5
Author: Kenton Groombridge <me <AT> concord <DOT> sh>
AuthorDate: Tue Nov 9 18:56:27 2021 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sat Nov 20 22:58:24 2021 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=2f9ccaa2
mcs: constrain context contain access
Signed-off-by: Kenton Groombridge <me <AT> concord.sh>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
policy/mcs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/policy/mcs b/policy/mcs
index c8c573e9..023bd149 100644
--- a/policy/mcs
+++ b/policy/mcs
@@ -123,6 +123,9 @@ mlsconstrain key { create link read search setattr view
write }
mlsconstrain { ipc sem msgq shm } { create destroy setattr write unix_write }
(( h1 dom h2 ) or ( t1 != mcs_constrained_type ));
+mlsconstrain context contains
+ ((( h1 dom h2 ) and ( l1 domby l2 )) or ( t1 != mcs_constrained_type ));
+
#
# MCS policy for SELinux-enabled databases
#