|
Dominick Grift |
68ac47 |
policy_module(cmirrord, 1.0.0)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Declarations
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type cmirrord_t;
|
|
Dan Walsh |
3eaa99 |
type cmirrord_exec_t;
|
|
Dan Walsh |
3eaa99 |
init_daemon_domain(cmirrord_t, cmirrord_exec_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type cmirrord_initrc_exec_t;
|
|
Dan Walsh |
3eaa99 |
init_script_file(cmirrord_initrc_exec_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type cmirrord_tmpfs_t;
|
|
Dan Walsh |
3eaa99 |
files_tmpfs_file(cmirrord_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type cmirrord_var_run_t;
|
|
Dan Walsh |
3eaa99 |
files_pid_file(cmirrord_var_run_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# cmirrord local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow cmirrord_t self:capability { net_admin kill };
|
|
Dan Walsh |
9461b6 |
dontaudit cmirrord_t self:capability sys_tty_config;
|
|
Dan Walsh |
3eaa99 |
allow cmirrord_t self:process signal;
|
|
Dan Walsh |
3eaa99 |
allow cmirrord_t self:fifo_file rw_fifo_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow cmirrord_t self:sem create_sem_perms;
|
|
Dan Walsh |
3eaa99 |
allow cmirrord_t self:shm create_shm_perms;
|
|
Dan Walsh |
3eaa99 |
allow cmirrord_t self:netlink_socket create_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow cmirrord_t self:unix_stream_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(cmirrord_t, cmirrord_tmpfs_t, cmirrord_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern(cmirrord_t, cmirrord_tmpfs_t, cmirrord_tmpfs_t)
|
|
Dan Walsh |
3eaa99 |
fs_tmpfs_filetrans(cmirrord_t, cmirrord_tmpfs_t, { dir file })
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(cmirrord_t, cmirrord_var_run_t, cmirrord_var_run_t)
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern(cmirrord_t, cmirrord_var_run_t, cmirrord_var_run_t)
|
|
Dominick Grift |
8bde5e |
files_pid_filetrans(cmirrord_t, cmirrord_var_run_t, file)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
domain_use_interactive_fds(cmirrord_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_read_etc_files(cmirrord_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
logging_send_syslog_msg(cmirrord_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_localization(cmirrord_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dominick Grift |
68ac47 |
corosync_stream_connect(cmirrord_t)
|
|
Dan Walsh |
3eaa99 |
')
|