Chris PeBenito 1d427a
Chris PeBenito 1d427a
policy_module(slrnpull,1.0.0)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
########################################
Chris PeBenito 1d427a
#
Chris PeBenito 1d427a
# Declarations
Chris PeBenito 1d427a
#
Chris PeBenito 1d427a
Chris PeBenito 1d427a
type slrnpull_t;
Chris PeBenito 1d427a
type slrnpull_exec_t;
Chris PeBenito 1d427a
init_daemon_domain(slrnpull_t,slrnpull_exec_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
type slrnpull_var_run_t;
Chris PeBenito 1d427a
files_pid_file(slrnpull_var_run_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
type slrnpull_spool_t;
Chris PeBenito 1d427a
files_type(slrnpull_spool_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
type slrnpull_log_t;
Chris PeBenito 1d427a
logging_log_file(slrnpull_log_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
########################################
Chris PeBenito 1d427a
#
Chris PeBenito 1d427a
# Local policy
Chris PeBenito 1d427a
#
Chris PeBenito 1d427a
Chris PeBenito 1d427a
dontaudit slrnpull_t self:capability sys_tty_config;
Chris PeBenito 1d427a
allow slrnpull_t self:process signal_perms;
Chris PeBenito 1d427a
Chris PeBenito 1d427a
allow slrnpull_t slrnpull_log_t:file create_file_perms;
Chris PeBenito 1c1ac6
logging_log_filetrans(slrnpull_t,slrnpull_log_t,file)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
allow slrnpull_t slrnpull_spool_t:dir rw_dir_perms;
Chris PeBenito 1d427a
allow slrnpull_t slrnpull_spool_t:dir create_dir_perms;
Chris PeBenito 1d427a
allow slrnpull_t slrnpull_spool_t:file create_file_perms;
Chris PeBenito 1d427a
allow slrnpull_t slrnpull_spool_t:lnk_file create_lnk_perms;
Chris PeBenito 1d427a
files_search_spool(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
allow slrnpull_t slrnpull_var_run_t:file create_file_perms;
Chris PeBenito 1d427a
allow slrnpull_t slrnpull_var_run_t:dir rw_dir_perms;
Chris PeBenito 1c1ac6
files_pid_filetrans(slrnpull_t,slrnpull_var_run_t,file)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
kernel_list_proc(slrnpull_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(slrnpull_t)
Chris PeBenito 1d427a
kernel_read_proc_symlinks(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
dev_read_sysfs(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 15722e
domain_use_interactive_fds(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
files_read_etc_files(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
fs_getattr_all_fs(slrnpull_t)
Chris PeBenito 1d427a
fs_search_auto_mountpoints(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
term_dontaudit_use_console(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1c1ac6
init_use_fds(slrnpull_t)
Chris PeBenito 1815ba
init_use_script_ptys(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
libs_use_ld_so(slrnpull_t)
Chris PeBenito 1d427a
libs_use_shared_libs(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
logging_send_syslog_msg(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
miscfiles_read_localization(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(slrnpull_t)
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
ifdef(`targeted_policy',`
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(slrnpull_t)
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(slrnpull_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(slrnpull_t)
Chris PeBenito 1d427a
')
Chris PeBenito 1d427a
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1d427a
	cron_system_entry(slrnpull_t,slrnpull_exec_t)
Chris PeBenito 1d427a
')
Chris PeBenito 1d427a
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1d427a
	seutil_sigchld_newrole(slrnpull_t)
Chris PeBenito 1d427a
')
Chris PeBenito 1d427a
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1d427a
	udev_read_db(slrnpull_t)
Chris PeBenito 1d427a
')