selinux-policy/policy/modules/services/slrnpull.te
2006-07-12 20:32:27 +00:00

88 lines
2.0 KiB
Plaintext

policy_module(slrnpull,1.0.0)
########################################
#
# Declarations
#
type slrnpull_t;
type slrnpull_exec_t;
init_daemon_domain(slrnpull_t,slrnpull_exec_t)
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;
allow slrnpull_t slrnpull_log_t:file create_file_perms;
logging_log_filetrans(slrnpull_t,slrnpull_log_t,file)
allow slrnpull_t slrnpull_spool_t:dir rw_dir_perms;
allow slrnpull_t slrnpull_spool_t:dir create_dir_perms;
allow slrnpull_t slrnpull_spool_t:file create_file_perms;
allow slrnpull_t slrnpull_spool_t:lnk_file create_lnk_perms;
files_search_spool(slrnpull_t)
allow slrnpull_t slrnpull_var_run_t:file create_file_perms;
allow slrnpull_t slrnpull_var_run_t:dir rw_dir_perms;
files_pid_filetrans(slrnpull_t,slrnpull_var_run_t,file)
kernel_list_proc(slrnpull_t)
kernel_read_kernel_sysctls(slrnpull_t)
kernel_read_proc_symlinks(slrnpull_t)
dev_read_sysfs(slrnpull_t)
domain_use_interactive_fds(slrnpull_t)
files_read_etc_files(slrnpull_t)
fs_getattr_all_fs(slrnpull_t)
fs_search_auto_mountpoints(slrnpull_t)
term_dontaudit_use_console(slrnpull_t)
init_use_fds(slrnpull_t)
init_use_script_ptys(slrnpull_t)
libs_use_ld_so(slrnpull_t)
libs_use_shared_libs(slrnpull_t)
logging_send_syslog_msg(slrnpull_t)
miscfiles_read_localization(slrnpull_t)
userdom_dontaudit_use_unpriv_user_fds(slrnpull_t)
userdom_dontaudit_search_sysadm_home_dirs(slrnpull_t)
ifdef(`targeted_policy',`
files_dontaudit_read_root_files(slrnpull_t)
term_dontaudit_use_unallocated_ttys(slrnpull_t)
term_dontaudit_use_generic_ptys(slrnpull_t)
')
optional_policy(`
cron_system_entry(slrnpull_t,slrnpull_exec_t)
')
optional_policy(`
seutil_sigchld_newrole(slrnpull_t)
')
optional_policy(`
udev_read_db(slrnpull_t)
')