--- nsaserefpolicy/policy/modules/services/roundup.fc 2008-08-07 11:15:11.000000000 -0400 +++ serefpolicy-3.5.5/policy/modules/services/roundup.fc 2008-08-14 13:53:54.000000000 -0400 @@ -7,3 +7,5 @@ # /var # /var/lib/roundup(/.*)? -- gen_context(system_u:object_r:roundup_var_lib_t,s0) + +/etc/rc.d/init.d/roundup -- gen_context(system_u:object_r:roundup_script_exec_t,s0) --- nsaserefpolicy/policy/modules/services/roundup.if 2008-08-07 11:15:11.000000000 -0400 +++ serefpolicy-3.5.5/policy/modules/services/roundup.if 2008-08-14 13:53:54.000000000 -0400 @@ -1 +1,66 @@ ## Roundup Issue Tracking System policy + +######################################## +## +## Execute roundup server in the roundup domain. +## +## +## +## The type of the process performing this action. +## +## +# +# +interface(`roundup_script_domtrans',` + gen_require(` + type roundup_script_exec_t; + ') + + init_script_domtrans_spec($1, roundup_script_exec_t) +') + +######################################## +## +## All of the rules required to administrate +## an roundup environment +## +## +## +## Domain allowed access. +## +## +## +## +## The role to be allowed to manage the roundup domain. +## +## +## +## +## The type of the user terminal. +## +## +## +# +interface(`roundup_admin',` + gen_require(` + type roundup_t; + type roundup_script_exec_t; + type roundup_var_lib_t; + type roundup_var_run_t; + ') + + allow $1 roundup_t:process { ptrace signal_perms getattr }; + read_files_pattern($1, roundup_t, roundup_t) + + # Allow roundup_t to restart the apache service + roundup_script_domtrans($1) + domain_system_change_exemption($1) + role_transition $2 roundup_script_exec_t system_r; + allow $2 system_r; + + files_list_var_lib($1) + admin_pattern($1, roundup_var_lib_t) + + files_list_pids($1) + admin_pattern($1, roundup_var_run_t) +') --- nsaserefpolicy/policy/modules/services/roundup.te 2008-08-07 11:15:11.000000000 -0400 +++ serefpolicy-3.5.5/policy/modules/services/roundup.te 2008-08-14 13:53:54.000000000 -0400 @@ -16,6 +16,9 @@ type roundup_var_lib_t; files_type(roundup_var_lib_t) +type roundup_script_exec_t; +init_script_type(roundup_script_exec_t) + ######################################## # # Local policy