Skip to contentSkip to conversation

Delete redundant role system_r assignments after init_daemon_domain

PATCH New Elia Pinto 1 participant 1 message Apr 29, 2011

lore
Share & tools
lore

Elia Pinto

author
#0 lore raw

PATCH 1/1 Delete redundant role system_r assignments after init_daemon_domain

From: Elia Pinto <[email protected]>

The interface init_daemon_domain in reference policy already call role system_r types <domain type>. Calling it again after init_daemon_domain is therefore redundant.

---
 policy/modules/services/apache.te   |    1 -
 policy/modules/services/bind.te     |    1 -
 policy/modules/services/milter.if   |    1 -
 policy/modules/services/pads.te     |    1 -
 policy/modules/services/prelude.te  |    1 -
 policy/modules/system/ipsec.te      |    2 --
 policy/modules/system/raid.te       |    1 -
 policy/modules/system/sysnetwork.te |    1 -
 8 files changed, 0 insertions(+), 9 deletions(-)
policy/modules/services/apache.te +0 -1
index 3136c6a..2175c26 100644
@@ -157,7 +157,6 @@ attribute httpd_script_domains;
 type httpd_t;
 type httpd_exec_t;
 init_daemon_domain(httpd_t, httpd_exec_t)
-role system_r types httpd_t;
 
 # httpd_cache_t is the type given to the /var/cache/httpd
 # directory and the files under that directory
policy/modules/services/bind.te +0 -1
index 4deca04..27810a1 100644
@@ -20,7 +20,6 @@ files_security_file(dnssec_t)
 type named_t;
 type named_exec_t;
 init_daemon_domain(named_t, named_exec_t)
-role system_r types named_t;
 
 type named_checkconf_exec_t;
 init_system_domain(named_t, named_checkconf_exec_t)
policy/modules/services/milter.if +0 -1
index ed1af3c..f6959c6 100644
@@ -20,7 +20,6 @@ template(`milter_template',`
 	type $1_milter_t, milter_domains;
 	type $1_milter_exec_t;
 	init_daemon_domain($1_milter_t, $1_milter_exec_t)
-	role system_r types $1_milter_t;
 
 	# Type for the milter data (e.g. the socket used to communicate with the MTA)
 	type $1_milter_data_t, milter_data_type;
policy/modules/services/pads.te +0 -1
index b246bdd..ea5755e 100644
@@ -8,7 +8,6 @@ policy_module(pads, 1.0.0)
 type pads_t;
 type pads_exec_t;
 init_daemon_domain(pads_t, pads_exec_t)
-role system_r types pads_t;
 
 type pads_initrc_exec_t;
 init_script_file(pads_initrc_exec_t)
policy/modules/services/prelude.te +0 -1
index b1bc02c..68d5ced 100644
@@ -35,7 +35,6 @@ files_pid_file(prelude_audisp_var_run_t)
 type prelude_correlator_t;
 type prelude_correlator_exec_t;
 init_daemon_domain(prelude_correlator_t, prelude_correlator_exec_t)
-role system_r types prelude_correlator_t;
 
 type prelude_correlator_config_t;
 files_config_file(prelude_correlator_config_t)
policy/modules/system/ipsec.te +0 -2
index 55a6cd8..c5bdc2a 100644
@@ -15,7 +15,6 @@ gen_tunable(racoon_read_shadow, false)
 type ipsec_t;
 type ipsec_exec_t;
 init_daemon_domain(ipsec_t, ipsec_exec_t)
-role system_r types ipsec_t;
 
 # type for ipsec configuration file(s) - not for keys
 type ipsec_conf_file_t;
@@ -57,7 +56,6 @@ files_pid_file(ipsec_mgmt_var_run_t)
 type racoon_t;
 type racoon_exec_t;
 init_daemon_domain(racoon_t, racoon_exec_t)
-role system_r types racoon_t;
 
 type racoon_tmp_t;
 files_tmp_file(racoon_tmp_t)
policy/modules/system/raid.te +0 -1
index 73cc8cf..2855e86 100644
@@ -8,7 +8,6 @@ policy_module(raid, 1.10.1)
 type mdadm_t;
 type mdadm_exec_t;
 init_daemon_domain(mdadm_t, mdadm_exec_t)
-role system_r types mdadm_t;
 
 type mdadm_map_t;
 files_type(mdadm_map_t)
policy/modules/system/sysnetwork.te +0 -1
index 34d0ec5..f1e5d1a 100644
@@ -17,7 +17,6 @@ files_type(dhcp_state_t)
 type dhcpc_t;
 type dhcpc_exec_t;
 init_daemon_domain(dhcpc_t, dhcpc_exec_t)
-role system_r types dhcpc_t;
 
 type dhcpc_state_t;
 files_type(dhcpc_state_t)
Signature · 1 line
1.7.2.1.44.g721e7