|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
12e9ea |
policy_module(inn,1.4.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
type innd_t;
|
|
Chris PeBenito |
17de1b |
type innd_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(innd_t,innd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type innd_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(innd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type innd_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(innd_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type innd_var_lib_t;
|
|
Chris PeBenito |
17de1b |
files_type(innd_var_lib_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type innd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(innd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type news_spool_t;
|
|
Chris PeBenito |
17de1b |
files_type(news_spool_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
allow innd_t self:capability { dac_override kill setgid setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit innd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow innd_t self:process { setsched signal_perms };
|
|
Chris PeBenito |
c0868a |
allow innd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow innd_t self:unix_dgram_socket { sendto create_socket_perms };
|
|
Chris PeBenito |
17de1b |
allow innd_t self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
Chris PeBenito |
17de1b |
allow innd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow innd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
a5e213 |
allow innd_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
read_files_pattern(innd_t,innd_etc_t,innd_etc_t)
|
|
Chris PeBenito |
c0868a |
read_lnk_files_pattern(innd_t,innd_etc_t,innd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
can_exec(innd_t, innd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(innd_t,innd_log_t,innd_log_t)
|
|
Chris PeBenito |
c0868a |
allow innd_t innd_log_t:dir setattr;
|
|
Chris PeBenito |
17de1b |
logging_log_filetrans(innd_t,innd_log_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(innd_t,innd_var_lib_t,innd_var_lib_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(innd_t,innd_var_lib_t,innd_var_lib_t)
|
|
Chris PeBenito |
17de1b |
files_var_lib_filetrans(innd_t,innd_var_lib_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(innd_t,innd_var_run_t,innd_var_run_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(innd_t,innd_var_run_t,innd_var_run_t)
|
|
Chris PeBenito |
c0868a |
manage_sock_files_pattern(innd_t,innd_var_run_t,innd_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(innd_t,innd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(innd_t,news_spool_t,news_spool_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(innd_t,news_spool_t,news_spool_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern(innd_t,news_spool_t,news_spool_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(innd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(innd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_innd_port(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_innd_server_packets(innd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(innd_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(innd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(innd_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_list_spool(innd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(innd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(innd_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(innd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_dontaudit_search_config(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(innd_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_send_mail(innd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cron_system_entry(innd_t, innd_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
hostname_exec(innd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(innd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(innd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(innd_t)
|
|
Chris PeBenito |
17de1b |
')
|