Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/
Date: Sat, 03 Sep 2022 19:54:08
Message-Id: 1662230515.b7a2d9d84420e7f4390bf8f71b475512e28e50ef.perfinion@gentoo
1 commit: b7a2d9d84420e7f4390bf8f71b475512e28e50ef
2 Author: Chris PeBenito <chpebeni <AT> linux <DOT> microsoft <DOT> com>
3 AuthorDate: Mon Jun 20 14:52:30 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=b7a2d9d8
7
8 mcs: Add additional SysV IPC constraints.
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/mcs | 11 ++++++++++-
14 1 file changed, 10 insertions(+), 1 deletion(-)
15
16 diff --git a/policy/mcs b/policy/mcs
17 index c9b7e83e..e8006b11 100644
18 --- a/policy/mcs
19 +++ b/policy/mcs
20 @@ -120,7 +120,16 @@ mlsconstrain { tcp_socket udp_socket rawip_socket sctp_socket } node_bind
21 mlsconstrain key { create link read search setattr view write }
22 (( h1 dom h2 ) or ( t1 != mcs_constrained_type ));
23
24 -mlsconstrain { ipc sem msgq shm } { create destroy setattr write unix_write }
25 +mlsconstrain { ipc sem msgq shm } { create destroy setattr read unix_read write unix_write }
26 + (( h1 dom h2 ) or ( t1 != mcs_constrained_type ));
27 +
28 +mlsconstrain msg { send receive }
29 + (( h1 dom h2 ) or ( t1 != mcs_constrained_type ));
30 +
31 +mlsconstrain msgq enqueue
32 + (( h1 dom h2 ) or ( t1 != mcs_constrained_type ));
33 +
34 +mlsconstrain shm lock
35 (( h1 dom h2 ) or ( t1 != mcs_constrained_type ));
36
37 mlsconstrain context contains