|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
5ea24b |
policy_module(dbskk,1.1.0)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
########################################
|
|
Chris PeBenito |
a63621 |
#
|
|
Chris PeBenito |
a63621 |
# Declarations
|
|
Chris PeBenito |
a63621 |
#
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
type dbskkd_t;
|
|
Chris PeBenito |
a63621 |
type dbskkd_exec_t;
|
|
Chris PeBenito |
a63621 |
inetd_service_domain(dbskkd_t,dbskkd_exec_t)
|
|
Chris PeBenito |
a63621 |
role system_r types dbskkd_t;
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
type dbskkd_tmp_t;
|
|
Chris PeBenito |
a63621 |
files_tmp_file(dbskkd_tmp_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
type dbskkd_var_run_t;
|
|
Chris PeBenito |
a63621 |
files_pid_file(dbskkd_var_run_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
########################################
|
|
Chris PeBenito |
a63621 |
#
|
|
Chris PeBenito |
a63621 |
# Local policy
|
|
Chris PeBenito |
a63621 |
#
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t self:process signal_perms;
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
33acca |
allow dbskkd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
# for identd
|
|
Chris PeBenito |
a63621 |
# cjp: this should probably only be inetd_child rules?
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t self:capability { setuid setgid };
|
|
Chris PeBenito |
a63621 |
files_search_home(dbskkd_t)
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
a63621 |
kerberos_use(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
')
|
|
Chris PeBenito |
a63621 |
#end for identd
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t dbskkd_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t dbskkd_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(dbskkd_t, dbskkd_tmp_t, { file dir })
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t dbskkd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
a63621 |
allow dbskkd_t dbskkd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
1c1ac6 |
files_pid_filetrans(dbskkd_t,dbskkd_var_run_t,file)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
kernel_read_system_state(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
kernel_read_network_state(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
corenet_tcp_sendrecv_all_if(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_udp_sendrecv_all_if(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_raw_sendrecv_all_if(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_tcp_sendrecv_all_nodes(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_udp_sendrecv_all_nodes(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_raw_sendrecv_all_nodes(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_tcp_sendrecv_all_ports(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_udp_sendrecv_all_ports(dbskkd_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_tcp_bind_all_nodes(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
corenet_udp_bind_all_nodes(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
dev_read_urand(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
fs_getattr_xattr_fs(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
files_read_etc_files(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
libs_use_ld_so(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
libs_use_shared_libs(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
logging_send_syslog_msg(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
miscfiles_read_localization(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
a63621 |
sysnet_read_config(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
a63621 |
nis_use_ypbind(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
')
|
|
Chris PeBenito |
a63621 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
1815ba |
nscd_socket_use(dbskkd_t)
|
|
Chris PeBenito |
a63621 |
')
|