Chris PeBenito 17de1b
Chris PeBenito 0251df
policy_module(slrnpull,1.1.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type slrnpull_t;
Chris PeBenito 17de1b
type slrnpull_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(slrnpull_t,slrnpull_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type slrnpull_var_run_t;
Chris PeBenito 17de1b
files_pid_file(slrnpull_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type slrnpull_spool_t;
Chris PeBenito 17de1b
files_type(slrnpull_spool_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type slrnpull_log_t;
Chris PeBenito 17de1b
logging_log_file(slrnpull_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dontaudit slrnpull_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow slrnpull_t self:process signal_perms;
Chris PeBenito 17de1b
Chris PeBenito c0868a
allow slrnpull_t slrnpull_log_t:file manage_file_perms;
Chris PeBenito 17de1b
logging_log_filetrans(slrnpull_t,slrnpull_log_t,file)
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_dirs_pattern(slrnpull_t,slrnpull_spool_t,slrnpull_spool_t)
Chris PeBenito c0868a
manage_files_pattern(slrnpull_t,slrnpull_spool_t,slrnpull_spool_t)
Chris PeBenito c0868a
manage_lnk_files_pattern(slrnpull_t,slrnpull_spool_t,slrnpull_spool_t)
Chris PeBenito 17de1b
files_search_spool(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_files_pattern(slrnpull_t,slrnpull_var_run_t,slrnpull_var_run_t)
Chris PeBenito 17de1b
files_pid_filetrans(slrnpull_t,slrnpull_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_list_proc(slrnpull_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(slrnpull_t)
Chris PeBenito 17de1b
kernel_read_proc_symlinks(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(slrnpull_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(slrnpull_t)
Chris PeBenito 17de1b
libs_use_shared_libs(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(slrnpull_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(slrnpull_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`targeted_policy',`
Chris PeBenito 17de1b
	files_dontaudit_read_root_files(slrnpull_t)
Chris PeBenito 17de1b
	term_dontaudit_use_unallocated_ttys(slrnpull_t)
Chris PeBenito 17de1b
	term_dontaudit_use_generic_ptys(slrnpull_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	cron_system_entry(slrnpull_t,slrnpull_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(slrnpull_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(slrnpull_t)
Chris PeBenito 17de1b
')