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

54 lines
1.1 KiB
Plaintext
Raw Normal View History

2005-08-05 15:32:27 +00:00
2006-03-07 14:12:39 +00:00
policy_module(tmpreaper,1.2.0)
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)
2006-01-25 15:53:35 +00:00
optional_policy(`lpd',`
lpd_manage_spool(tmpreaper_t)
')
2005-08-05 15:32:27 +00:00
ifdef(`TODO',`
allow tmpreaper_t { home_type file_t }:notdevfile_class_set { getattr unlink };
')