2019-10-01 00:39:26 +00:00
|
|
|
policy_module(resmgr, 1.6.1)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type resmgrd_t;
|
|
|
|
type resmgrd_exec_t;
|
|
|
|
init_daemon_domain(resmgrd_t, resmgrd_exec_t)
|
|
|
|
|
|
|
|
type resmgrd_etc_t;
|
|
|
|
files_config_file(resmgrd_etc_t)
|
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type resmgrd_initrc_exec_t;
|
|
|
|
init_script_file(resmgrd_initrc_exec_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type resmgrd_runtime_t alias resmgrd_var_run_t;
|
|
|
|
files_pid_file(resmgrd_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow resmgrd_t self:capability { dac_override sys_admin sys_rawio };
|
|
|
|
dontaudit resmgrd_t self:capability sys_tty_config;
|
|
|
|
allow resmgrd_t self:process signal_perms;
|
|
|
|
|
|
|
|
allow resmgrd_t resmgrd_etc_t:file read_file_perms;
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
allow resmgrd_t resmgrd_runtime_t:file manage_file_perms;
|
|
|
|
allow resmgrd_t resmgrd_runtime_t:sock_file manage_sock_file_perms;
|
|
|
|
files_pid_filetrans(resmgrd_t, resmgrd_runtime_t, { file sock_file })
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_list_proc(resmgrd_t)
|
|
|
|
kernel_read_proc_symlinks(resmgrd_t)
|
|
|
|
kernel_read_kernel_sysctls(resmgrd_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(resmgrd_t)
|
|
|
|
dev_getattr_scanner_dev(resmgrd_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(resmgrd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(resmgrd_t)
|
|
|
|
|
|
|
|
fs_search_auto_mountpoints(resmgrd_t)
|
|
|
|
|
|
|
|
storage_dontaudit_read_fixed_disk(resmgrd_t)
|
|
|
|
storage_read_scsi_generic(resmgrd_t)
|
|
|
|
storage_raw_read_removable_device(resmgrd_t)
|
|
|
|
storage_raw_write_removable_device(resmgrd_t)
|
|
|
|
storage_write_scsi_generic(resmgrd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(resmgrd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(resmgrd_t)
|
|
|
|
|
|
|
|
userdom_dontaudit_use_unpriv_user_fds(resmgrd_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
seutil_sigchld_newrole(resmgrd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
udev_read_db(resmgrd_t)
|
|
|
|
')
|