2005-09-06 18:37:27 +00:00
|
|
|
|
2005-12-09 16:38:39 +00:00
|
|
|
policy_module(inn,1.1.0)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
type innd_t;
|
|
|
|
type innd_exec_t;
|
|
|
|
init_daemon_domain(innd_t,innd_exec_t)
|
|
|
|
|
2005-10-24 18:40:24 +00:00
|
|
|
type innd_etc_t;
|
|
|
|
files_config_file(innd_etc_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
type innd_log_t;
|
|
|
|
logging_log_file(innd_log_t)
|
|
|
|
|
|
|
|
type innd_var_lib_t;
|
|
|
|
files_type(innd_var_lib_t)
|
|
|
|
|
|
|
|
type innd_var_run_t;
|
|
|
|
files_pid_file(innd_var_run_t)
|
|
|
|
|
|
|
|
type news_spool_t;
|
|
|
|
files_type(news_spool_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
allow innd_t self:capability { dac_override kill setgid setuid };
|
|
|
|
dontaudit innd_t self:capability sys_tty_config;
|
2005-10-21 22:56:41 +00:00
|
|
|
allow innd_t self:process { setsched signal_perms };
|
2005-09-06 18:37:27 +00:00
|
|
|
allow innd_t self:fifo_file rw_file_perms;
|
|
|
|
allow innd_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow innd_t self:udp_socket create_socket_perms;
|
2005-10-24 00:54:39 +00:00
|
|
|
allow innd_t self:unix_dgram_socket { sendto create_socket_perms };
|
2005-09-06 18:37:27 +00:00
|
|
|
allow innd_t self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
|
|
|
|
|
|
allow innd_t innd_etc_t:file r_file_perms;
|
|
|
|
allow innd_t innd_etc_t:dir r_dir_perms;
|
|
|
|
allow innd_t innd_etc_t:lnk_file { getattr read };
|
|
|
|
|
|
|
|
can_exec(innd_t, innd_exec_t)
|
|
|
|
|
2005-10-24 00:54:39 +00:00
|
|
|
allow innd_t innd_log_t:file manage_file_perms;
|
2005-11-10 21:37:54 +00:00
|
|
|
allow innd_t innd_log_t:dir { setattr rw_dir_perms };
|
2006-03-02 23:41:11 +00:00
|
|
|
logging_log_filetrans(innd_t,innd_log_t,file)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
allow innd_t innd_var_lib_t:dir create_dir_perms;
|
|
|
|
allow innd_t innd_var_lib_t:file create_file_perms;
|
2006-03-02 23:41:11 +00:00
|
|
|
files_var_lib_filetrans(innd_t,innd_var_lib_t,file)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
allow innd_t innd_var_run_t:dir create_dir_perms;
|
|
|
|
allow innd_t innd_var_run_t:file create_file_perms;
|
|
|
|
allow innd_t innd_var_run_t:sock_file create_file_perms;
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(innd_t,innd_var_run_t,file)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
allow innd_t news_spool_t:dir create_dir_perms;
|
|
|
|
allow innd_t news_spool_t:file create_file_perms;
|
|
|
|
allow innd_t news_spool_t:lnk_file create_lnk_perms;
|
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
kernel_read_system_state(innd_t)
|
|
|
|
|
|
|
|
corenet_raw_sendrecv_all_if(innd_t)
|
|
|
|
corenet_tcp_sendrecv_all_if(innd_t)
|
|
|
|
corenet_udp_sendrecv_all_if(innd_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(innd_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(innd_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(innd_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(innd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(innd_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
corenet_tcp_bind_all_nodes(innd_t)
|
|
|
|
corenet_udp_bind_all_nodes(innd_t)
|
|
|
|
corenet_tcp_bind_innd_port(innd_t)
|
2005-09-12 21:40:56 +00:00
|
|
|
corenet_tcp_connect_all_ports(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(innd_t)
|
|
|
|
dev_read_urand(innd_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(innd_t)
|
|
|
|
fs_search_auto_mountpoints(innd_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(innd_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(innd_t)
|
|
|
|
corecmd_exec_shell(innd_t)
|
2005-11-08 22:00:30 +00:00
|
|
|
corecmd_search_sbin(innd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
corecmd_read_sbin_symlinks(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
files_list_spool(innd_t)
|
|
|
|
files_read_etc_files(innd_t)
|
|
|
|
files_read_etc_runtime_files(innd_t)
|
|
|
|
files_read_usr_files(innd_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(innd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(innd_t)
|
|
|
|
libs_use_shared_libs(innd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(innd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(innd_t)
|
|
|
|
|
|
|
|
seutil_dontaudit_search_config(innd_t)
|
|
|
|
|
|
|
|
sysnet_read_config(innd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(innd_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
|
|
|
|
mta_send_mail(innd_t)
|
|
|
|
|
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_unallocated_ttys(innd_t)
|
|
|
|
term_dontaudit_use_generic_ptys(innd_t)
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_read_root_files(innd_t)
|
2005-09-06 18:37:27 +00:00
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`cron',`
|
2005-09-06 18:37:27 +00:00
|
|
|
cron_system_entry(innd_t, innd_exec_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`hostname',`
|
2005-09-06 18:37:27 +00:00
|
|
|
hostname_exec(innd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`mount',`
|
2005-09-06 18:37:27 +00:00
|
|
|
mount_send_nfs_client_request(innd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`nis',`
|
2005-09-06 18:37:27 +00:00
|
|
|
nis_use_ypbind(innd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`selinuxutil',`
|
2005-09-06 18:37:27 +00:00
|
|
|
seutil_sigchld_newrole(innd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`udev',`
|
2005-09-06 18:37:27 +00:00
|
|
|
udev_read_db(innd_t)
|
|
|
|
')
|