Chris PeBenito 9570b2
policy_module(webadm, 1.1.0)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
########################################
Chris PeBenito 153fe2
#
Chris PeBenito 153fe2
# Declarations
Chris PeBenito 153fe2
#
Chris PeBenito 153fe2
Chris PeBenito 153fe2
## <desc>
Chris PeBenito 153fe2
## 

Chris PeBenito 153fe2
## Allow webadm to manage files in users home directories
Chris PeBenito 153fe2
## 

Chris PeBenito 153fe2
## </desc>
Chris PeBenito 153fe2
gen_tunable(webadm_manage_user_files, false)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
## <desc>
Chris PeBenito 153fe2
## 

Chris PeBenito 153fe2
## Allow webadm to read files in users home directories
Chris PeBenito 153fe2
## 

Chris PeBenito 153fe2
## </desc>
Chris PeBenito 153fe2
gen_tunable(webadm_read_user_files, false)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
role webadm_r;
Chris PeBenito 153fe2
Chris PeBenito 153fe2
userdom_base_user_template(webadm)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
########################################
Chris PeBenito 153fe2
#
Chris PeBenito 153fe2
# webadmin local policy
Chris PeBenito 153fe2
#
Chris PeBenito 153fe2
Chris PeBenito 153fe2
allow webadm_t self:capability { dac_override dac_read_search kill sys_ptrace sys_nice };
Chris PeBenito 153fe2
Chris PeBenito 153fe2
files_dontaudit_search_all_dirs(webadm_t)
Chris PeBenito 153fe2
files_manage_generic_locks(webadm_t)
Chris PeBenito 153fe2
files_list_var(webadm_t)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
selinux_get_enforce_mode(webadm_t)
Chris PeBenito 153fe2
seutil_domtrans_setfiles(webadm_t)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
logging_send_syslog_msg(webadm_t)
Dan Walsh 9461b6
logging_send_audit_msgs(webadm_t)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
userdom_dontaudit_search_user_home_dirs(webadm_t)
Chris PeBenito 153fe2
Chris PeBenito 4be3e1
apache_admin(webadm_t, webadm_r)
Chris PeBenito 153fe2
Chris PeBenito 153fe2
tunable_policy(`webadm_manage_user_files',`
Chris PeBenito 153fe2
	userdom_manage_user_home_content_files(webadm_t)
Chris PeBenito 153fe2
	userdom_read_user_tmp_files(webadm_t)
Chris PeBenito 153fe2
	userdom_write_user_tmp_files(webadm_t)
Chris PeBenito 153fe2
')
Chris PeBenito 153fe2
Chris PeBenito 153fe2
tunable_policy(`webadm_read_user_files',`
Chris PeBenito 153fe2
	userdom_read_user_home_content_files(webadm_t)
Chris PeBenito 153fe2
	userdom_read_user_tmp_files(webadm_t)
Chris PeBenito 153fe2
')