fee48647ac
67effb0
483be01
c6c63f6
b0d8d59
5b082e4
b8097d6
689d954
5afc3d3
f3c5e77
a59e50c
cf87233
17759c7
dc1db54
e9bf16d
4f95198
bf40792
622c63b
c20842c
dc7cc4d
792d448
73 lines
2.0 KiB
Plaintext
73 lines
2.0 KiB
Plaintext
policy_module(certmonger, 1.0.1)
|
|
|
|
########################################
|
|
#
|
|
# Declarations
|
|
#
|
|
|
|
type certmonger_t;
|
|
type certmonger_exec_t;
|
|
init_daemon_domain(certmonger_t, certmonger_exec_t)
|
|
|
|
type certmonger_initrc_exec_t;
|
|
init_script_file(certmonger_initrc_exec_t)
|
|
|
|
type certmonger_var_run_t;
|
|
files_pid_file(certmonger_var_run_t)
|
|
|
|
type certmonger_var_lib_t;
|
|
files_type(certmonger_var_lib_t)
|
|
|
|
########################################
|
|
#
|
|
# certmonger local policy
|
|
#
|
|
|
|
allow certmonger_t self:capability { kill sys_nice };
|
|
allow certmonger_t self:process { getsched setsched sigkill };
|
|
allow certmonger_t self:fifo_file rw_file_perms;
|
|
allow certmonger_t self:unix_stream_socket create_stream_socket_perms;
|
|
allow certmonger_t self:tcp_socket create_stream_socket_perms;
|
|
allow certmonger_t self:netlink_route_socket r_netlink_socket_perms;
|
|
|
|
manage_dirs_pattern(certmonger_t, certmonger_var_lib_t, certmonger_var_lib_t)
|
|
manage_files_pattern(certmonger_t, certmonger_var_lib_t, certmonger_var_lib_t)
|
|
files_var_lib_filetrans(certmonger_t, certmonger_var_lib_t, { file dir } )
|
|
|
|
manage_dirs_pattern(certmonger_t, certmonger_var_run_t, certmonger_var_run_t)
|
|
manage_files_pattern(certmonger_t, certmonger_var_run_t, certmonger_var_run_t)
|
|
files_pid_filetrans(certmonger_t, certmonger_var_run_t, { file dir })
|
|
|
|
corenet_tcp_sendrecv_generic_if(certmonger_t)
|
|
corenet_tcp_sendrecv_generic_node(certmonger_t)
|
|
corenet_tcp_sendrecv_all_ports(certmonger_t)
|
|
corenet_tcp_connect_certmaster_port(certmonger_t)
|
|
|
|
dev_read_urand(certmonger_t)
|
|
|
|
domain_use_interactive_fds(certmonger_t)
|
|
|
|
files_read_etc_files(certmonger_t)
|
|
files_read_usr_files(certmonger_t)
|
|
files_list_tmp(certmonger_t)
|
|
|
|
logging_send_syslog_msg(certmonger_t)
|
|
|
|
miscfiles_read_localization(certmonger_t)
|
|
miscfiles_manage_generic_cert_files(certmonger_t)
|
|
|
|
sysnet_dns_name_resolve(certmonger_t)
|
|
|
|
optional_policy(`
|
|
dbus_system_bus_client(certmonger_t)
|
|
dbus_connect_system_bus(certmonger_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
kerberos_use(certmonger_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
pcscd_stream_connect(certmonger_t)
|
|
')
|