selinux-policy/policy/modules/admin/tmpreaper.te

48 lines
985 B
Plaintext
Raw Normal View History

2005-08-05 15:32:27 +00:00
2007-07-19 18:57:48 +00:00
policy_module(tmpreaper,1.2.1)
2005-08-05 15:32:27 +00:00
########################################
#
# Declarations
#
type tmpreaper_t;
type tmpreaper_exec_t;
2007-07-19 18:57:48 +00:00
application_domain(tmpreaper_t,tmpreaper_exec_t)
role system_r types tmpreaper_t;
2005-08-05 15:32:27 +00:00
########################################
#
# Local Policy
#
allow tmpreaper_t self:process { fork sigchld };
allow tmpreaper_t self:capability { dac_override dac_read_search fowner };
dev_read_urand(tmpreaper_t)
fs_getattr_xattr_fs(tmpreaper_t)
files_read_etc_files(tmpreaper_t)
files_read_var_lib_files(tmpreaper_t)
files_purge_tmp(tmpreaper_t)
# why does it need setattr?
files_setattr_all_tmp_dirs(tmpreaper_t)
2006-01-06 22:51:40 +00:00
mls_file_read_up(tmpreaper_t)
mls_file_write_down(tmpreaper_t)
2005-08-05 15:32:27 +00:00
libs_use_ld_so(tmpreaper_t)
libs_use_shared_libs(tmpreaper_t)
logging_send_syslog_msg(tmpreaper_t)
miscfiles_read_localization(tmpreaper_t)
2005-09-16 21:20:37 +00:00
miscfiles_delete_man_pages(tmpreaper_t)
2005-08-05 15:32:27 +00:00
cron_system_entry(tmpreaper_t,tmpreaper_exec_t)
optional_policy(`
2006-01-25 15:53:35 +00:00
lpd_manage_spool(tmpreaper_t)
')