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

76 lines
1.6 KiB
Plaintext
Raw Normal View History

2005-08-05 15:32:27 +00:00
2010-05-24 19:32:01 +00:00
policy_module(tmpreaper, 1.5.0)
2005-08-05 15:32:27 +00:00
########################################
#
# Declarations
#
type tmpreaper_t;
type tmpreaper_exec_t;
application_domain(tmpreaper_t, tmpreaper_exec_t)
2007-07-19 18:57:48 +00:00
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)
2009-07-27 13:11:38 +00:00
files_getattr_all_dirs(tmpreaper_t)
files_getattr_all_files(tmpreaper_t)
2005-08-05 15:32:27 +00:00
mls_file_read_all_levels(tmpreaper_t)
mls_file_write_all_levels(tmpreaper_t)
2006-01-06 22:51:40 +00:00
2005-08-05 15:32:27 +00:00
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)
2005-08-05 15:32:27 +00:00
2009-07-27 13:11:38 +00:00
ifdef(`distro_redhat',`
2010-05-24 14:51:54 +00:00
userdom_list_user_home_content(tmpreaper_t)
2009-07-27 13:11:38 +00:00
userdom_delete_user_home_content_dirs(tmpreaper_t)
userdom_delete_user_home_content_files(tmpreaper_t)
userdom_delete_user_home_content_symlinks(tmpreaper_t)
')
optional_policy(`
amavis_manage_spool_files(tmpreaper_t)
')
2010-05-24 14:51:54 +00:00
optional_policy(`
apache_list_cache(tmpreaper_t)
apache_delete_cache_files(tmpreaper_t)
2010-05-24 14:51:54 +00:00
apache_setattr_cache_dirs(tmpreaper_t)
')
2009-07-27 13:11:38 +00:00
optional_policy(`
kismet_manage_log(tmpreaper_t)
')
optional_policy(`
2006-01-25 15:53:35 +00:00
lpd_manage_spool(tmpreaper_t)
')
2009-07-27 13:11:38 +00:00
2010-05-24 14:51:54 +00:00
optional_policy(`
rpm_manage_cache(tmpreaper_t)
')
2009-07-27 13:11:38 +00:00
optional_policy(`
unconfined_domain(tmpreaper_t)
')