2006-01-04 20:44:30 +00:00
|
|
|
|
2008-07-02 14:07:57 +00:00
|
|
|
policy_module(slrnpull, 1.3.0)
|
2006-01-04 20:44:30 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type slrnpull_t;
|
|
|
|
type slrnpull_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(slrnpull_t, slrnpull_exec_t)
|
2006-01-04 20:44:30 +00:00
|
|
|
|
|
|
|
type slrnpull_var_run_t;
|
|
|
|
files_pid_file(slrnpull_var_run_t)
|
|
|
|
|
|
|
|
type slrnpull_spool_t;
|
|
|
|
files_type(slrnpull_spool_t)
|
|
|
|
|
|
|
|
type slrnpull_log_t;
|
|
|
|
logging_log_file(slrnpull_log_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit slrnpull_t self:capability sys_tty_config;
|
|
|
|
allow slrnpull_t self:process signal_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow slrnpull_t slrnpull_log_t:file manage_file_perms;
|
2008-07-23 21:38:39 +00:00
|
|
|
logging_log_filetrans(slrnpull_t, slrnpull_log_t, file)
|
2006-01-04 20:44:30 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(slrnpull_t, slrnpull_spool_t, slrnpull_spool_t)
|
|
|
|
manage_files_pattern(slrnpull_t, slrnpull_spool_t, slrnpull_spool_t)
|
|
|
|
manage_lnk_files_pattern(slrnpull_t, slrnpull_spool_t, slrnpull_spool_t)
|
2006-01-04 20:44:30 +00:00
|
|
|
files_search_spool(slrnpull_t)
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(slrnpull_t, slrnpull_var_run_t, slrnpull_var_run_t)
|
|
|
|
files_pid_filetrans(slrnpull_t, slrnpull_var_run_t, file)
|
2006-01-04 20:44:30 +00:00
|
|
|
|
|
|
|
kernel_list_proc(slrnpull_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(slrnpull_t)
|
2006-01-04 20:44:30 +00:00
|
|
|
kernel_read_proc_symlinks(slrnpull_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(slrnpull_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(slrnpull_t)
|
2006-01-04 20:44:30 +00:00
|
|
|
|
|
|
|
files_read_etc_files(slrnpull_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(slrnpull_t)
|
|
|
|
fs_search_auto_mountpoints(slrnpull_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(slrnpull_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(slrnpull_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(slrnpull_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
|
|
|
sysadm_dontaudit_search_home_dirs(slrnpull_t)
|
2006-01-04 20:44:30 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-07-23 21:38:39 +00:00
|
|
|
cron_system_entry(slrnpull_t, slrnpull_exec_t)
|
2006-01-04 20:44:30 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-04 20:44:30 +00:00
|
|
|
seutil_sigchld_newrole(slrnpull_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-04 20:44:30 +00:00
|
|
|
udev_read_db(slrnpull_t)
|
|
|
|
')
|