2020-08-18 13:09:10 +00:00
|
|
|
policy_module(cmirrord, 1.6.0)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type cmirrord_t;
|
|
|
|
type cmirrord_exec_t;
|
|
|
|
init_daemon_domain(cmirrord_t, cmirrord_exec_t)
|
|
|
|
|
|
|
|
type cmirrord_initrc_exec_t;
|
|
|
|
init_script_file(cmirrord_initrc_exec_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type cmirrord_runtime_t alias cmirrord_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(cmirrord_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type cmirrord_tmpfs_t;
|
|
|
|
files_tmpfs_file(cmirrord_tmpfs_t)
|
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow cmirrord_t self:capability { kill net_admin };
|
|
|
|
dontaudit cmirrord_t self:capability sys_tty_config;
|
|
|
|
allow cmirrord_t self:process { setfscreate signal };
|
|
|
|
allow cmirrord_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow cmirrord_t self:sem create_sem_perms;
|
|
|
|
allow cmirrord_t self:shm create_shm_perms;
|
|
|
|
allow cmirrord_t self:netlink_socket create_socket_perms;
|
|
|
|
allow cmirrord_t self:unix_stream_socket { accept listen };
|
|
|
|
|
|
|
|
manage_dirs_pattern(cmirrord_t, cmirrord_tmpfs_t, cmirrord_tmpfs_t)
|
|
|
|
manage_files_pattern(cmirrord_t, cmirrord_tmpfs_t, cmirrord_tmpfs_t)
|
|
|
|
fs_tmpfs_filetrans(cmirrord_t, cmirrord_tmpfs_t, { dir file })
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_files_pattern(cmirrord_t, cmirrord_runtime_t, cmirrord_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(cmirrord_t, cmirrord_runtime_t, file)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
domain_use_interactive_fds(cmirrord_t)
|
|
|
|
domain_obj_id_change_exemption(cmirrord_t)
|
|
|
|
|
|
|
|
files_read_etc_files(cmirrord_t)
|
|
|
|
|
|
|
|
storage_create_fixed_disk_dev(cmirrord_t)
|
|
|
|
|
|
|
|
seutil_read_file_contexts(cmirrord_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(cmirrord_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(cmirrord_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
corosync_stream_connect(cmirrord_t)
|
|
|
|
')
|