2022-01-06 13:55:54 +00:00
|
|
|
policy_module(monop)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type monopd_t;
|
|
|
|
type monopd_exec_t;
|
|
|
|
init_daemon_domain(monopd_t, monopd_exec_t)
|
|
|
|
|
|
|
|
type monopd_initrc_exec_t;
|
|
|
|
init_script_file(monopd_initrc_exec_t)
|
|
|
|
|
|
|
|
type monopd_etc_t;
|
|
|
|
files_config_file(monopd_etc_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type monopd_runtime_t alias monopd_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(monopd_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type monopd_share_t;
|
|
|
|
files_type(monopd_share_t)
|
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit monopd_t self:capability sys_tty_config;
|
|
|
|
allow monopd_t self:process signal_perms;
|
|
|
|
allow monopd_t self:tcp_socket { accept listen };
|
|
|
|
|
|
|
|
allow monopd_t monopd_etc_t:file read_file_perms;
|
|
|
|
|
|
|
|
allow monopd_t monopd_share_t:dir list_dir_perms;
|
|
|
|
read_files_pattern(monopd_t, monopd_share_t, monopd_share_t)
|
|
|
|
read_lnk_files_pattern(monopd_t, monopd_share_t, monopd_share_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_files_pattern(monopd_t, monopd_runtime_t, monopd_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(monopd_t, monopd_runtime_t, file)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_read_kernel_sysctls(monopd_t)
|
|
|
|
kernel_list_proc(monopd_t)
|
|
|
|
kernel_read_proc_symlinks(monopd_t)
|
|
|
|
|
|
|
|
corenet_all_recvfrom_netlabel(monopd_t)
|
|
|
|
corenet_tcp_sendrecv_generic_if(monopd_t)
|
|
|
|
corenet_tcp_sendrecv_generic_node(monopd_t)
|
|
|
|
corenet_tcp_bind_generic_node(monopd_t)
|
|
|
|
|
|
|
|
corenet_sendrecv_monopd_server_packets(monopd_t)
|
|
|
|
corenet_tcp_bind_monopd_port(monopd_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(monopd_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(monopd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(monopd_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(monopd_t)
|
|
|
|
fs_search_auto_mountpoints(monopd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(monopd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(monopd_t)
|
|
|
|
|
|
|
|
sysnet_dns_name_resolve(monopd_t)
|
|
|
|
|
|
|
|
userdom_dontaudit_use_unpriv_user_fds(monopd_t)
|
|
|
|
userdom_dontaudit_search_user_home_dirs(monopd_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
nis_use_ypbind(monopd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
seutil_sigchld_newrole(monopd_t)
|
|
|
|
')
|
|
|
|
|