Chris PeBenito ed78ea
Chris PeBenito 0bfccd
policy_module(tmpreaper, 1.3.0)
Chris PeBenito ed78ea
Chris PeBenito ed78ea
########################################
Chris PeBenito ed78ea
#
Chris PeBenito ed78ea
# Declarations
Chris PeBenito ed78ea
#
Chris PeBenito ed78ea
Chris PeBenito ed78ea
type tmpreaper_t;
Chris PeBenito ed78ea
type tmpreaper_exec_t;
Chris PeBenito 0bfccd
application_domain(tmpreaper_t, tmpreaper_exec_t)
Chris PeBenito d46cfe
role system_r types tmpreaper_t;
Chris PeBenito ed78ea
Chris PeBenito ed78ea
########################################
Chris PeBenito ed78ea
#
Chris PeBenito ed78ea
# Local Policy
Chris PeBenito ed78ea
#
Chris PeBenito ed78ea
Chris PeBenito ed78ea
allow tmpreaper_t self:process { fork sigchld };
Chris PeBenito ed78ea
allow tmpreaper_t self:capability { dac_override dac_read_search fowner };
Chris PeBenito ed78ea
Chris PeBenito ed78ea
dev_read_urand(tmpreaper_t)
Chris PeBenito ed78ea
Chris PeBenito ed78ea
fs_getattr_xattr_fs(tmpreaper_t)
Chris PeBenito ed78ea
Chris PeBenito ed78ea
files_read_etc_files(tmpreaper_t)
Chris PeBenito ed78ea
files_read_var_lib_files(tmpreaper_t)
Chris PeBenito ed78ea
files_purge_tmp(tmpreaper_t)
Chris PeBenito ed78ea
# why does it need setattr?
Chris PeBenito ed78ea
files_setattr_all_tmp_dirs(tmpreaper_t)
Chris PeBenito ed78ea
Chris PeBenito f8233a
mls_file_read_all_levels(tmpreaper_t)
Chris PeBenito f8233a
mls_file_write_all_levels(tmpreaper_t)
Chris PeBenito bf080a
Chris PeBenito ed78ea
logging_send_syslog_msg(tmpreaper_t)
Chris PeBenito ed78ea
Chris PeBenito ed78ea
miscfiles_read_localization(tmpreaper_t)
Chris PeBenito cf6a7d
miscfiles_delete_man_pages(tmpreaper_t)
Chris PeBenito ed78ea
Chris PeBenito 0bfccd
cron_system_entry(tmpreaper_t, tmpreaper_exec_t)
Chris PeBenito ed78ea
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito a52492
	lpd_manage_spool(tmpreaper_t)
Chris PeBenito a52492
')