2005-10-22 21:18:03 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
policy_module(dbskk, 1.4.0)
|
2005-10-22 21:18:03 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type dbskkd_t;
|
|
|
|
type dbskkd_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
inetd_service_domain(dbskkd_t, dbskkd_exec_t)
|
2005-10-22 21:18:03 +00:00
|
|
|
role system_r types dbskkd_t;
|
|
|
|
|
|
|
|
type dbskkd_tmp_t;
|
|
|
|
files_tmp_file(dbskkd_tmp_t)
|
|
|
|
|
|
|
|
type dbskkd_var_run_t;
|
|
|
|
files_pid_file(dbskkd_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow dbskkd_t self:process signal_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow dbskkd_t self:fifo_file rw_fifo_file_perms;
|
2005-10-22 21:18:03 +00:00
|
|
|
allow dbskkd_t self:tcp_socket connected_stream_socket_perms;
|
2005-10-26 16:00:13 +00:00
|
|
|
allow dbskkd_t self:udp_socket create_socket_perms;
|
2005-10-22 21:18:03 +00:00
|
|
|
|
|
|
|
# for identd
|
|
|
|
# cjp: this should probably only be inetd_child rules?
|
|
|
|
allow dbskkd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
|
|
allow dbskkd_t self:capability { setuid setgid };
|
|
|
|
files_search_home(dbskkd_t)
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-22 21:18:03 +00:00
|
|
|
kerberos_use(dbskkd_t)
|
|
|
|
')
|
|
|
|
#end for identd
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(dbskkd_t, dbskkd_tmp_t, dbskkd_tmp_t)
|
|
|
|
manage_files_pattern(dbskkd_t, dbskkd_tmp_t, dbskkd_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(dbskkd_t, dbskkd_tmp_t, { file dir })
|
2005-10-22 21:18:03 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(dbskkd_t, dbskkd_var_run_t, dbskkd_var_run_t)
|
|
|
|
files_pid_filetrans(dbskkd_t, dbskkd_var_run_t, file)
|
2005-10-22 21:18:03 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(dbskkd_t)
|
2005-10-22 21:18:03 +00:00
|
|
|
kernel_read_system_state(dbskkd_t)
|
|
|
|
kernel_read_network_state(dbskkd_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(dbskkd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(dbskkd_t)
|
2005-10-22 21:18:03 +00:00
|
|
|
corenet_tcp_sendrecv_all_if(dbskkd_t)
|
|
|
|
corenet_udp_sendrecv_all_if(dbskkd_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(dbskkd_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(dbskkd_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(dbskkd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(dbskkd_t)
|
|
|
|
|
|
|
|
dev_read_urand(dbskkd_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(dbskkd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(dbskkd_t)
|
|
|
|
|
2007-12-04 15:05:55 +00:00
|
|
|
auth_use_nsswitch(dbskkd_t)
|
|
|
|
|
2005-10-22 21:18:03 +00:00
|
|
|
logging_send_syslog_msg(dbskkd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(dbskkd_t)
|