|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
116c1d |
policy_module(dbskk,1.3.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type dbskkd_t;
|
|
Chris PeBenito |
17de1b |
type dbskkd_exec_t;
|
|
Chris PeBenito |
17de1b |
inetd_service_domain(dbskkd_t,dbskkd_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types dbskkd_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type dbskkd_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(dbskkd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type dbskkd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(dbskkd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow dbskkd_t self:process signal_perms;
|
|
Chris PeBenito |
c0868a |
allow dbskkd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow dbskkd_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dbskkd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for identd
|
|
Chris PeBenito |
17de1b |
# cjp: this should probably only be inetd_child rules?
|
|
Chris PeBenito |
17de1b |
allow dbskkd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dbskkd_t self:capability { setuid setgid };
|
|
Chris PeBenito |
17de1b |
files_search_home(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
kerberos_use(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
#end for identd
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(dbskkd_t,dbskkd_tmp_t,dbskkd_tmp_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(dbskkd_t,dbskkd_tmp_t,dbskkd_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(dbskkd_t, dbskkd_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(dbskkd_t,dbskkd_var_run_t,dbskkd_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(dbskkd_t,dbskkd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_network_state(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(dbskkd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_xattr_fs(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(dbskkd_t)
|
|
Chris PeBenito |
17de1b |
')
|