2020-08-18 13:09:10 +00:00
|
|
|
policy_module(dbskk, 1.9.0)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type dbskkd_t;
|
|
|
|
type dbskkd_exec_t;
|
|
|
|
inetd_service_domain(dbskkd_t, dbskkd_exec_t)
|
|
|
|
role system_r types dbskkd_t;
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type dbskkd_runtime_t alias dbskkd_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(dbskkd_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type dbskkd_tmp_t;
|
|
|
|
files_tmp_file(dbskkd_tmp_t)
|
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow dbskkd_t self:process signal_perms;
|
|
|
|
allow dbskkd_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow dbskkd_t self:tcp_socket { accept listen };
|
|
|
|
|
|
|
|
manage_dirs_pattern(dbskkd_t, dbskkd_tmp_t, dbskkd_tmp_t)
|
|
|
|
manage_files_pattern(dbskkd_t, dbskkd_tmp_t, dbskkd_tmp_t)
|
|
|
|
files_tmp_filetrans(dbskkd_t, dbskkd_tmp_t, { file dir })
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_files_pattern(dbskkd_t, dbskkd_runtime_t, dbskkd_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(dbskkd_t, dbskkd_runtime_t, file)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_read_kernel_sysctls(dbskkd_t)
|
|
|
|
kernel_read_system_state(dbskkd_t)
|
|
|
|
kernel_read_network_state(dbskkd_t)
|
|
|
|
|
|
|
|
corenet_all_recvfrom_netlabel(dbskkd_t)
|
|
|
|
corenet_tcp_sendrecv_generic_if(dbskkd_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(dbskkd_t)
|
|
|
|
corenet_tcp_sendrecv_generic_node(dbskkd_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(dbskkd_t)
|
|
|
|
|
|
|
|
dev_read_urand(dbskkd_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(dbskkd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(dbskkd_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(dbskkd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(dbskkd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(dbskkd_t)
|