Skip to contentSkip to conversation

Move oident manage and relabel home content interfaces to common user template.

PATCH New Dominick Grift 1 participant 1 message Sep 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Move oident manage and relabel home content interfaces to common user template.

---
:100644 100644 1854002... 089acb7... M policy/modules/roles/staff.te
:100644 100644 2a19751... 88ecccf... M policy/modules/roles/sysadm.te
:100644 100644 9b55b00... 738c59b... M policy/modules/roles/unprivuser.te
:100644 100644 2aa8928... b575edd... M policy/modules/system/userdomain.if

 policy/modules/roles/staff.te       |    5 -----
 policy/modules/roles/sysadm.te      |    5 -----
 policy/modules/roles/unprivuser.te  |    5 -----
 policy/modules/system/userdomain.if |    5 +++++
 4 files changed, 5 insertions(+), 15 deletions(-)
policy/modules/roles/staff.te +0 -5
index 1854002..089acb7 100644
@@ -27,11 +27,6 @@ optional_policy(`
 ')
 
 optional_policy(`
-	oident_manage_user_content(staff_t)
-	oident_relabel_user_content(staff_t)
-')
-
-optional_policy(`
 	postgresql_role(staff_r, staff_t)
 ')
 
policy/modules/roles/sysadm.te +0 -5
index 2a19751..88ecccf 100644
@@ -236,11 +236,6 @@ optional_policy(`
 ')
 
 optional_policy(`
-	oident_manage_user_content(sysadm_t)
-	oident_relabel_user_content(sysadm_t)
-')
-
-optional_policy(`
 	pcmcia_run_cardctl(sysadm_t, sysadm_r)
 ')
 
policy/modules/roles/unprivuser.te +0 -5
index 9b55b00..738c59b 100644
@@ -17,11 +17,6 @@ optional_policy(`
 ')
 
 optional_policy(`
-	oident_manage_user_content(user_t)
-	oident_relabel_user_content(user_t)
-')
-
-optional_policy(`
 	screen_role_template(user, user_r, user_t)
 ')
 
policy/modules/system/userdomain.if +5 -0
index 2aa8928..b575edd 100644
@@ -642,6 +642,11 @@ template(`userdom_common_user_template',`
 	')
 
 	optional_policy(`
+		oident_manage_user_content($1_t)
+		oident_relabel_user_content($1_t)
+	')
+
+	optional_policy(`
 		# to allow monitoring of pcmcia status
 		pcmcia_read_pid($1_t)
 	')
Signature · 9 lines
1.7.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100922/bbae95cb/attachment.bin