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 1d427a
logging_create_log(slrnpull_t,slrnpull_log_t)
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 1d427a
files_create_pid(slrnpull_t,slrnpull_var_run_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
kernel_list_proc(slrnpull_t)
Chris PeBenito 1d427a
kernel_read_kernel_sysctl(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 1d427a
domain_use_wide_inherit_fd(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 1d427a
init_use_fd(slrnpull_t)
Chris PeBenito 1d427a
init_use_script_pty(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 1d427a
userdom_dontaudit_use_unpriv_user_fd(slrnpull_t)
Chris PeBenito 1d427a
userdom_dontaudit_search_sysadm_home_dir(slrnpull_t)
Chris PeBenito 1d427a
Chris PeBenito 1d427a
ifdef(`targeted_policy',`
Chris PeBenito 1d427a
	files_dontaudit_read_root_file(slrnpull_t)
Chris PeBenito 1d427a
	term_dontaudit_use_unallocated_tty(slrnpull_t)
Chris PeBenito 1d427a
	term_dontaudit_use_generic_pty(slrnpull_t)
Chris PeBenito 1d427a
')
Chris PeBenito 1d427a
Chris PeBenito 1d427a
optional_policy(`cron',`
Chris PeBenito 1d427a
	cron_system_entry(slrnpull_t,slrnpull_exec_t)
Chris PeBenito 1d427a
')
Chris PeBenito 1d427a
Chris PeBenito 1d427a
optional_policy(`selinuxutil',`
Chris PeBenito 1d427a
	seutil_sigchld_newrole(slrnpull_t)
Chris PeBenito 1d427a
')
Chris PeBenito 1d427a
Chris PeBenito 1d427a
optional_policy(`udev',`
Chris PeBenito 1d427a
	udev_read_db(slrnpull_t)
Chris PeBenito 1d427a
')