2008-07-23 21:38:39 +00:00
|
|
|
policy_module(resmgr, 1.2.0)
|
2006-04-14 19:13:17 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type resmgrd_t;
|
|
|
|
type resmgrd_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(resmgrd_t, resmgrd_exec_t)
|
2006-04-14 19:13:17 +00:00
|
|
|
|
|
|
|
type resmgrd_etc_t;
|
|
|
|
files_config_file(resmgrd_etc_t)
|
|
|
|
|
|
|
|
type resmgrd_var_run_t;
|
|
|
|
files_pid_file(resmgrd_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# 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;
|
|
|
|
|
2008-10-16 16:09:20 +00:00
|
|
|
allow resmgrd_t resmgrd_etc_t:file read_file_perms;
|
2006-04-14 19:13:17 +00:00
|
|
|
files_search_etc(resmgrd_t)
|
|
|
|
|
|
|
|
allow resmgrd_t resmgrd_var_run_t:file manage_file_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow resmgrd_t resmgrd_var_run_t:sock_file manage_sock_file_perms;
|
2008-07-23 21:38:39 +00:00
|
|
|
files_pid_filetrans(resmgrd_t, resmgrd_var_run_t, { file sock_file })
|
2006-04-14 19:13:17 +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)
|
|
|
|
# not sure if it needs write access, needs to be investigated further...
|
|
|
|
storage_write_scsi_generic(resmgrd_t)
|
|
|
|
storage_raw_write_removable_device(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)
|
|
|
|
')
|