1 |
commit: d0b423d30f512d496de5906810303f301fa8a241 |
2 |
Author: Chris PeBenito <chpebeni <AT> linux <DOT> microsoft <DOT> com> |
3 |
AuthorDate: Thu Jun 23 19:33:34 2022 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 3 18:41:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d0b423d3 |
7 |
|
8 |
mls: Add setsockcreate constraint. |
9 |
|
10 |
Signed-off-by: Chris PeBenito <chpebeni <AT> linux.microsoft.com> |
11 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
12 |
|
13 |
policy/mls | 2 +- |
14 |
1 file changed, 1 insertion(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/policy/mls b/policy/mls |
17 |
index 8ba40c07..3cf4110d 100644 |
18 |
--- a/policy/mls |
19 |
+++ b/policy/mls |
20 |
@@ -377,7 +377,7 @@ mlsconstrain process { getsched getsession getpgid getcap getattr ptrace share } |
21 |
( t1 == mlsprocread )); |
22 |
|
23 |
# all the process "write" ops (note the check is equality on the low level) |
24 |
-mlsconstrain process { sigkill sigstop signal setsched setpgid setcap setexec setfscreate setcurrent ptrace share } |
25 |
+mlsconstrain process { sigkill sigstop signal setsched setpgid setcap setexec setfscreate setsockcreate setcurrent ptrace share } |
26 |
(( l1 eq l2 ) or |
27 |
(( t1 == mlsprocwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or |
28 |
( t1 == mlsprocwrite )); |