Skip to contentSkip to conversation

Remove admin templates from userdom_admin_user_template

PATCH Daniel J Walsh 2 participants 2 messages Apr 19, 2007 – Apr 26, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
policy/modules/system/userdomain.if +0 -16
@@ -1225,22 +1230,6 @@
 	')
 
 	optional_policy(`
-		cron_admin_template($1,$1_t,$1_r)
-	')
-
-	optional_policy(`
-		ethereal_admin_template($1,$1_t,$1_r)
-	')
-
-	optional_policy(`
-		lpr_admin_template($1,$1_t,$1_r)
-	')
-
-	optional_policy(`
-		mta_admin_template($1,$1_t,$1_r)
-	')
-
-	optional_policy(`
 		userhelper_exec($1_t)
 	')
 ')
policy/modules/system/userdomain.te +18 -1
@@ -101,10 +102,27 @@
 # Local policy
 #
 
+userdom_unpriv_user_template(user)
 ifdef(`strict_policy',`
 	userdom_admin_user_template(sysadm)
+
+	optional_policy(`
+		cron_admin_template(sysadm,sysadm_t,sysadm_r)
+	')
+
+	optional_policy(`
+		ethereal_admin_template(sysadm,sysadm_t,sysadm_r)
+	')
+
+	optional_policy(`
+		lpr_admin_template(sysadm,sysadm_t,sysadm_r)
+	')
+
+	optional_policy(`
+		mta_admin_template(sysadm,sysadm_t,sysadm_r)
+	')
+
 	userdom_unpriv_user_template(staff)
-	userdom_unpriv_user_template(user)
 
 	# user role change rules:
 	# sysadm_r can change to user roles
#1 lore raw
Quoted 46 lines · Daniel J Walsh
policy/modules/system/userdomain.if 2007-04-19 09:43:55.000000000 -0400 renamed from policy/modules/system/userdomain.if 2007-03-26 16:24:13.000000000 -0400 +0 -16
@@ -1225,22 +1230,6 @@
        ')
 
        optional_policy(`
-               cron_admin_template($1,$1_t,$1_r)
-       ')
-
-       optional_policy(`
-               ethereal_admin_template($1,$1_t,$1_r)
-       ')
-
-       optional_policy(`
-               lpr_admin_template($1,$1_t,$1_r)
-       ')
-
-       optional_policy(`
-               mta_admin_template($1,$1_t,$1_r)
-       ')
-
-       optional_policy(`
                userhelper_exec($1_t)
        ')
 ')
policy/modules/system/userdomain.te 2007-04-19 09:48:39.000000000 -0400 renamed from policy/modules/system/userdomain.te 2007-03-26 16:24:13.000000000 -0400 +13 -0
@@ -101,10 +102,27 @@
 # Local policy
 #
 
+userdom_unpriv_user_template(user)
 ifdef(`strict_policy',`
        userdom_admin_user_template(sysadm)
+
+       optional_policy(`
+               cron_admin_template(sysadm,sysadm_t,sysadm_r)
+       ')
+
+       optional_policy(`
+               ethereal_admin_template(sysadm,sysadm_t,sysadm_r)
+       ')
+
+       optional_policy(`
+               lpr_admin_template(sysadm,sysadm_t,sysadm_r)
+       ')

policy/modules/system/userdomain.te 2007-04-19 09:48:39.000000000 -0400 line 128

Quoted 10 lines
policy/modules/system/userdomain.te 2007-04-19 09:48:39.000000000 -0400 renamed from policy/modules/system/userdomain.te 2007-03-26 16:24:13.000000000 -0400 +5 -1
+
+       optional_policy(`
+               mta_admin_template(sysadm,sysadm_t,sysadm_r)
+       ')
+
        userdom_unpriv_user_template(staff)
-       userdom_unpriv_user_template(user)
 
        # user role change rules:
        # sysadm_r can change to user roles

The main part has already been done. Not going to move out the user definition, as that is what the strict-targeted merge branch is for.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.