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

50 lines
1.0 KiB
Plaintext
Raw Normal View History

2005-08-05 15:32:27 +00:00
2006-01-06 22:51:40 +00:00
policy_module(tmpreaper,1.0.1)
2005-08-05 15:32:27 +00:00
########################################
#
# Declarations
#
type tmpreaper_t;
role system_r types tmpreaper_t;
domain_type(tmpreaper_t)
type tmpreaper_exec_t;
domain_entry_file(tmpreaper_t,tmpreaper_exec_t)
########################################
#
# 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)
ifdef(`TODO',`
allow tmpreaper_t { home_type file_t }:notdevfile_class_set { getattr unlink };
')