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