--- nsaserefpolicy/policy/modules/services/nscd.if 2007-01-02 12:57:43.000000000 -0500 +++ serefpolicy-2.5.8/policy/modules/services/nscd.if 2007-03-06 13:33:06.000000000 -0500 @@ -173,3 +173,35 @@ allow $1 nscd_t:nscd *; ') + +######################################## +## +## Execute nscd in the nscd domain, and +## allow the specified role the nscd domain. +## +## +## +## The type of the process performing this action. +## +## +## +## +## The role to be allowed the nscd domain. +## +## +## +## +## The type of the terminal allow the nscd domain to use. +## +## +# +interface(`nscd_run',` + gen_require(` + type nscd_t; + ') + + nscd_domtrans($1) + role $2 types nscd_t; + dontaudit nscd_t $3:chr_file rw_term_perms; +') + --- nsaserefpolicy/policy/modules/system/userdomain.te 2007-02-19 11:32:53.000000000 -0500 +++ serefpolicy-2.5.8/policy/modules/system/userdomain.te 2007-03-06 13:33:25.000000000 -0500 @@ -423,6 +438,10 @@ ') optional_policy(` + nscd_run(sysadm_t,sysadm_r,admin_terminal) + ') + + optional_policy(` usermanage_run_admin_passwd(sysadm_t,sysadm_r,admin_terminal) usermanage_run_groupadd(sysadm_t,sysadm_r,admin_terminal) usermanage_run_useradd(sysadm_t,sysadm_r,admin_terminal)