diff --git a/policy/modules/services/nis.if b/policy/modules/services/nis.if index 055f0029..da35bd8b 100644 --- a/policy/modules/services/nis.if +++ b/policy/modules/services/nis.if @@ -327,7 +327,7 @@ interface(`nis_initrc_domtrans',` ## ## # -interface(`nis_ypbind_initrc_domtrans',` +interface(`nis_initrc_domtrans_ypbind',` gen_require(` type ypbind_initrc_exec_t; ') @@ -373,7 +373,7 @@ interface(`nis_admin',` ps_process_pattern($1, ypxfr_t) nis_initrc_domtrans($1) - nis_ypbind_initrc_domtrans($1) + nis_initrc_domtrans_ypbind($1) domain_system_change_exemption($1) role_transition $2 nis_initrc_exec_t system_r; role_transition $2 ypbind_initrc_exec_t system_r; diff --git a/policy/modules/services/nis.te b/policy/modules/services/nis.te index 775dfbec..40ff0755 100644 --- a/policy/modules/services/nis.te +++ b/policy/modules/services/nis.te @@ -6,6 +6,9 @@ policy_module(nis, 1.9.0) # Declarations # +type nis_initrc_exec_t; +init_script_file(nis_initrc_exec_t) + type var_yp_t; files_type(var_yp_t) @@ -50,9 +53,6 @@ init_daemon_domain(ypxfr_t, ypxfr_exec_t) type ypxfr_var_run_t; files_pid_file(ypxfr_var_run_t) -type nis_initrc_exec_t; -init_script_file(nis_initrc_exec_t) - ######################################## # # ypbind local policy