File: 0001-Make-default-and-root-mcs-seusers-unconfined.patch

package info (click to toggle)
refpolicy 2%3A2.20250213-10
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 17,924 kB
  • sloc: python: 2,642; makefile: 670; sh: 274; sed: 21; xml: 13; awk: 7
file content (31 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: =?UTF-8?q?Mika=20Pfl=C3=BCger?= <debian@mikapflueger.de>
Date: Sat, 18 Feb 2012 01:48:07 +0100
Subject: Make default and root mcs/seusers unconfined

---
 config/appconfig-mcs/seusers |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: refpolicy-2.20230710/config/appconfig-mcs/seusers
===================================================================
--- refpolicy-2.20230710.orig/config/appconfig-mcs/seusers
+++ refpolicy-2.20230710/config/appconfig-mcs/seusers
@@ -1,3 +1,3 @@
-root:root:s0-mcs_systemhigh
-__default__:user_u:s0
+root:unconfined_u:s0-mcs_systemhigh
+__default__:unconfined_u:s0-mcs_systemhigh
 sddm:xdm:s0
Index: refpolicy-2.20230710/policy/constraints
===================================================================
--- refpolicy-2.20230710.orig/policy/constraints
+++ refpolicy-2.20230710/policy/constraints
@@ -29,6 +29,8 @@ define(`basic_ubac_conditions',`
 	ifdef(`enable_ubac',`
 		u1 == u2
 		or u1 == system_u
+		or u1 == unconfined_u
+		or u1 == sysadm_u
 		or u2 == system_u
 		or t1 != ubac_constrained_type
 		or t2 != ubac_constrained_type