From b006b259f42cf5f758f290236bd3ffc6b97dab58 Mon Sep 17 00:00:00 2001 From: Kenton Groombridge Date: Tue, 9 Nov 2021 13:56:27 -0500 Subject: [PATCH] mcs: constrain context contain access Signed-off-by: Kenton Groombridge --- policy/mcs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/mcs b/policy/mcs index c8c573e98..023bd149b 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 #