|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d9845a |
policy_module(logging,1.4.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
attribute logfile;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type auditctl_t;
|
|
Chris PeBenito |
17de1b |
type auditctl_exec_t;
|
|
Chris PeBenito |
17de1b |
init_system_domain(auditctl_t,auditctl_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types auditctl_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type auditd_etc_t;
|
|
Chris PeBenito |
17de1b |
files_security_file(auditd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type auditd_log_t;
|
|
Chris PeBenito |
17de1b |
files_security_file(auditd_log_t)
|
|
Chris PeBenito |
e2b84e |
files_mountpoint(auditd_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type auditd_t;
|
|
Chris PeBenito |
e070dd |
type auditd_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(auditd_t,auditd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type auditd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(auditd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type devlog_t;
|
|
Chris PeBenito |
17de1b |
files_type(devlog_t)
|
|
Chris PeBenito |
17de1b |
mls_trusted_object(devlog_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type klogd_t;
|
|
Chris PeBenito |
17de1b |
type klogd_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(klogd_t,klogd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type klogd_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(klogd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type klogd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(klogd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type syslogd_t;
|
|
Chris PeBenito |
17de1b |
type syslogd_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(syslogd_t,syslogd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type syslogd_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(syslogd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type syslogd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(syslogd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type var_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(var_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e070dd |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
e070dd |
init_ranged_daemon_domain(auditd_t,auditd_exec_t,mls_systemhigh)
|
|
Chris PeBenito |
e070dd |
')
|
|
Chris PeBenito |
e070dd |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Auditd local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow auditctl_t self:capability { audit_write audit_control };
|
|
Chris PeBenito |
17de1b |
allow auditctl_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay nlmsg_readpriv };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(auditctl_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow auditctl_t etc_t:file { getattr read };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow auditctl_t auditd_etc_t:dir r_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow auditctl_t auditd_etc_t:file r_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Needed for adding watches
|
|
Chris PeBenito |
17de1b |
files_getattr_all_dirs(auditctl_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(auditctl_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_read_all_domains_state(auditctl_t)
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mls_file_read_up(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_use_all_terms(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(auditctl_t)
|
|
Chris PeBenito |
17de1b |
init_dontaudit_use_fds(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
locallogin_dontaudit_use_fds(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(auditctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
term_use_generic_ptys(auditctl_t)
|
|
Chris PeBenito |
17de1b |
term_use_unallocated_ttys(auditctl_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Auditd local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow auditd_t self:capability { audit_write audit_control sys_nice sys_resource };
|
|
Chris PeBenito |
17de1b |
dontaudit auditd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow auditd_t self:process { signal_perms setpgid setsched };
|
|
Chris PeBenito |
17de1b |
allow auditd_t self:file { getattr read write };
|
|
Chris PeBenito |
17de1b |
allow auditd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow auditd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay nlmsg_readpriv };
|
|
Chris PeBenito |
17de1b |
allow auditd_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow auditd_t auditd_etc_t:dir r_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow auditd_t auditd_etc_t:file r_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow auditd_t auditd_log_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow auditd_t auditd_log_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow auditd_t auditd_log_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
allow auditd_t var_log_t:dir search;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a5e213 |
allow auditd_t auditd_var_run_t:sock_file manage_file_perms;
|
|
Chris PeBenito |
a5e213 |
allow auditd_t auditd_var_run_t:file manage_file_perms;
|
|
Chris PeBenito |
17de1b |
allow auditd_t auditd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
a5e213 |
files_pid_filetrans(auditd_t,auditd_var_run_t,{ file sock_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(auditd_t)
|
|
Chris PeBenito |
17de1b |
# Needs to be able to run dispatcher. see /etc/audit/auditd.conf
|
|
Chris PeBenito |
17de1b |
# Probably want a transition, and a new auditd_helper app
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(auditd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d9845a |
selinux_search_fs(auditctl_t)
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_console(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Needs to be able to run dispatcher. see /etc/audit/auditd.conf
|
|
Chris PeBenito |
17de1b |
# Probably want a transition, and a new auditd_helper app
|
|
Chris PeBenito |
17de1b |
corecmd_exec_sbin(auditd_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(auditd_t)
|
|
Chris PeBenito |
465510 |
corecmd_exec_shell(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(auditd_t)
|
|
Chris PeBenito |
17de1b |
files_list_usr(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_fds(auditd_t)
|
|
Chris PeBenito |
17de1b |
init_exec(auditd_t)
|
|
Chris PeBenito |
17de1b |
init_write_initctl(auditd_t)
|
|
Chris PeBenito |
17de1b |
init_dontaudit_use_script_ptys(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(auditd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mls_file_read_up(auditd_t)
|
|
Chris PeBenito |
693d4a |
mls_file_write_down(auditd_t) # Need to be able to write to /var/run/ directory
|
|
Chris PeBenito |
17de1b |
mls_rangetrans_target(auditd_t)
|
|
Chris PeBenito |
d9845a |
mls_fd_use_all_levels(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_dontaudit_read_config(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(auditd_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(auditd_t)
|
|
Chris PeBenito |
17de1b |
# cjp: this is questionable
|
|
Chris PeBenito |
17de1b |
userdom_use_sysadm_ttys(auditd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_generic_ptys(auditd_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_unallocated_ttys(auditd_t)
|
|
Chris PeBenito |
17de1b |
unconfined_dontaudit_read_pipes(auditd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(auditd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(auditd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# klogd local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow klogd_t self:capability sys_admin;
|
|
Chris PeBenito |
17de1b |
dontaudit klogd_t self:capability { sys_resource sys_tty_config };
|
|
Chris PeBenito |
17de1b |
allow klogd_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow klogd_t klogd_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow klogd_t klogd_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(klogd_t,klogd_tmp_t,{ file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow klogd_t klogd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow klogd_t klogd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(klogd_t,klogd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(klogd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_messages(klogd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(klogd_t)
|
|
Chris PeBenito |
17de1b |
# Control syslog and console logging
|
|
Chris PeBenito |
17de1b |
kernel_clear_ring_buffer(klogd_t)
|
|
Chris PeBenito |
17de1b |
kernel_change_ring_buffer_level(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_kernel_symbol_table(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_raw_memory(klogd_t)
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(klogd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_console(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(klogd_t)
|
|
Chris PeBenito |
17de1b |
# read /etc/nsswitch.conf
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_fds(klogd_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(klogd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mls_file_read_up(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(klogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(klogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_generic_ptys(klogd_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_unallocated_ttys(klogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(klogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# syslogd local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e9b9e4 |
# chown fsetid for syslog-ng
|
|
Chris PeBenito |
e9b9e4 |
# sys_admin for the integrated klog of syslog-ng and metalog
|
|
Chris PeBenito |
17de1b |
# cjp: why net_admin!
|
|
Chris PeBenito |
17de1b |
allow syslogd_t self:capability { dac_override sys_resource sys_tty_config net_admin sys_admin chown fsetid };
|
|
Chris PeBenito |
17de1b |
dontaudit syslogd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
e9b9e4 |
# setpgid for metalog
|
|
Chris PeBenito |
e9b9e4 |
allow syslogd_t self:process { signal_perms setpgid };
|
|
Chris PeBenito |
17de1b |
allow syslogd_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
# receive messages to be logged
|
|
Chris PeBenito |
17de1b |
allow syslogd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow syslogd_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow syslogd_t self:unix_dgram_socket sendto;
|
|
Chris PeBenito |
17de1b |
allow syslogd_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow syslogd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Create and bind to /dev/log or /var/run/log.
|
|
Chris PeBenito |
17de1b |
allow syslogd_t devlog_t:sock_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(syslogd_t,devlog_t,sock_file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# create/append log files.
|
|
Chris PeBenito |
17de1b |
allow syslogd_t var_log_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow syslogd_t var_log_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
# Allow access for syslog-ng
|
|
Chris PeBenito |
17de1b |
allow syslogd_t var_log_t:dir { create setattr };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# manage temporary files
|
|
Chris PeBenito |
17de1b |
allow syslogd_t syslogd_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow syslogd_t syslogd_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(syslogd_t,syslogd_tmp_t,{ dir file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow syslogd_t syslogd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(syslogd_t,syslogd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# manage pid file
|
|
Chris PeBenito |
17de1b |
allow syslogd_t syslogd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow syslogd_t syslogd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(syslogd_t,syslogd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(syslogd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(syslogd_t)
|
|
Chris PeBenito |
17de1b |
# Allow access to /proc/kmsg for syslog-ng
|
|
Chris PeBenito |
17de1b |
kernel_read_messages(syslogd_t)
|
|
Chris PeBenito |
17de1b |
kernel_clear_ring_buffer(syslogd_t)
|
|
Chris PeBenito |
17de1b |
kernel_change_ring_buffer_level(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_filetrans(syslogd_t,devlog_t,sock_file)
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_write_console(syslogd_t)
|
|
Chris PeBenito |
17de1b |
# Allow syslog to a terminal
|
|
Chris PeBenito |
17de1b |
term_write_unallocated_ttys(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for sending messages to logged in users
|
|
Chris PeBenito |
17de1b |
init_read_utmp(syslogd_t)
|
|
Chris PeBenito |
17de1b |
init_dontaudit_write_utmp(syslogd_t)
|
|
Chris PeBenito |
17de1b |
term_write_all_user_ttys(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corenet_non_ipsec_sendrecv(syslogd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(syslogd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(syslogd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(syslogd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_all_nodes(syslogd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_syslogd_port(syslogd_t)
|
|
Chris PeBenito |
17de1b |
# syslog-ng can send or receive logs
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_syslogd_client_packets(syslogd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_syslogd_server_packets(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_fds(syslogd_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(syslogd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(syslogd_t)
|
|
Chris PeBenito |
17de1b |
# /initrd is not umounted before minilog starts
|
|
Chris PeBenito |
17de1b |
files_dontaudit_search_isid_type_dirs(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(syslogd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# cjp: this doesnt make sense
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(syslogd_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(syslogd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
ce6bf7 |
ifdef(`distro_gentoo',`
|
|
Chris PeBenito |
ce6bf7 |
# default gentoo syslog-ng config appends kernel
|
|
Chris PeBenito |
ce6bf7 |
# and high priority messages to /dev/tty12
|
|
Chris PeBenito |
ce6bf7 |
term_append_unallocated_ttys(syslogd_t)
|
|
Chris PeBenito |
ce6bf7 |
term_dontaudit_setattr_unallocated_ttys(syslogd_t)
|
|
Chris PeBenito |
ce6bf7 |
')
|
|
Chris PeBenito |
ce6bf7 |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_suse',`
|
|
Chris PeBenito |
17de1b |
# suse creates a /dev/log under /var/lib/stunnel for chrooted stunnel
|
|
Chris PeBenito |
17de1b |
files_var_lib_filetrans(syslogd_t,devlog_t,sock_file)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
allow syslogd_t var_run_t:fifo_file { ioctl read write };
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_unallocated_ttys(syslogd_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_generic_ptys(syslogd_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_read_root_files(syslogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
inn_manage_log(syslogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(syslogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(syslogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(syslogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(syslogd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# log to the xconsole
|
|
Chris PeBenito |
17de1b |
xserver_rw_console(syslogd_t)
|
|
Chris PeBenito |
17de1b |
')
|