|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
policy_module(resmgr, 1.2.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type resmgrd_t;
|
|
Chris PeBenito |
17de1b |
type resmgrd_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(resmgrd_t, resmgrd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type resmgrd_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(resmgrd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type resmgrd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(resmgrd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow resmgrd_t self:capability { dac_override sys_admin sys_rawio };
|
|
Chris PeBenito |
17de1b |
dontaudit resmgrd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow resmgrd_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0b36a2 |
allow resmgrd_t resmgrd_etc_t:file read_file_perms;
|
|
Chris PeBenito |
17de1b |
files_search_etc(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow resmgrd_t resmgrd_var_run_t:file manage_file_perms;
|
|
Chris PeBenito |
c0868a |
allow resmgrd_t resmgrd_var_run_t:sock_file manage_sock_file_perms;
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(resmgrd_t, resmgrd_var_run_t, { file sock_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
dev_getattr_scanner_dev(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
storage_dontaudit_read_fixed_disk(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
storage_read_scsi_generic(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
storage_raw_read_removable_device(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
# not sure if it needs write access, needs to be investigated further...
|
|
Chris PeBenito |
17de1b |
storage_write_scsi_generic(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
storage_raw_write_removable_device(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(resmgrd_t)
|
|
Chris PeBenito |
17de1b |
')
|