|
Chris PeBenito |
e181fe |
|
|
Chris PeBenito |
a52492 |
policy_module(logging,1.2.1)
|
|
Chris PeBenito |
960373 |
|
|
Chris PeBenito |
eb7f9a |
########################################
|
|
Chris PeBenito |
eb7f9a |
#
|
|
Chris PeBenito |
eb7f9a |
# Declarations
|
|
Chris PeBenito |
eb7f9a |
#
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
b4cd15 |
attribute logfile;
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
c3cf66 |
type auditctl_t;
|
|
Chris PeBenito |
605ba2 |
type auditctl_exec_t;
|
|
Chris PeBenito |
605ba2 |
init_system_domain(auditctl_t,auditctl_exec_t)
|
|
Chris PeBenito |
605ba2 |
role system_r types auditctl_t;
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
a2868f |
type auditd_etc_t;
|
|
Chris PeBenito |
a2868f |
files_security_file(auditd_etc_t)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
a2868f |
type auditd_log_t;
|
|
Chris PeBenito |
a2868f |
files_security_file(auditd_log_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
eb7f9a |
type auditd_t;
|
|
Chris PeBenito |
93727e |
# real declaration moved to mls until
|
|
Chris PeBenito |
93727e |
# range_transition works in loadable modules
|
|
Chris PeBenito |
93727e |
gen_require(`
|
|
Chris PeBenito |
93727e |
type auditd_exec_t;
|
|
Chris PeBenito |
93727e |
')
|
|
Chris PeBenito |
c9428d |
init_daemon_domain(auditd_t,auditd_exec_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
eb7f9a |
type auditd_var_run_t;
|
|
Chris PeBenito |
c9428d |
files_pid_file(auditd_var_run_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
f0574f |
type devlog_t;
|
|
Chris PeBenito |
8fd367 |
files_type(devlog_t)
|
|
Chris PeBenito |
f0574f |
mls_trusted_object(devlog_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
f0574f |
type klogd_t;
|
|
Chris PeBenito |
4ddc1a |
type klogd_exec_t;
|
|
Chris PeBenito |
c9428d |
init_daemon_domain(klogd_t,klogd_exec_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4ddc1a |
type klogd_tmp_t;
|
|
Chris PeBenito |
c9428d |
files_tmp_file(klogd_tmp_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4ddc1a |
type klogd_var_run_t;
|
|
Chris PeBenito |
c9428d |
files_pid_file(klogd_var_run_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4ddc1a |
type syslogd_t;
|
|
Chris PeBenito |
4ddc1a |
type syslogd_exec_t;
|
|
Chris PeBenito |
c9428d |
init_daemon_domain(syslogd_t,syslogd_exec_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4ddc1a |
type syslogd_tmp_t;
|
|
Chris PeBenito |
c9428d |
files_tmp_file(syslogd_tmp_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4ddc1a |
type syslogd_var_run_t;
|
|
Chris PeBenito |
c9428d |
files_pid_file(syslogd_var_run_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
31a1c2 |
type var_log_t;
|
|
Chris PeBenito |
31a1c2 |
logging_log_file(var_log_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4ddc1a |
########################################
|
|
Chris PeBenito |
4ddc1a |
#
|
|
Chris PeBenito |
eb7f9a |
# Auditd local policy
|
|
Chris PeBenito |
eb7f9a |
#
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
605ba2 |
allow auditctl_t self:capability { audit_write audit_control };
|
|
Chris PeBenito |
605ba2 |
allow auditctl_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay nlmsg_readpriv };
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
libs_use_ld_so(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
libs_use_shared_libs(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
allow auditctl_t etc_t:file { getattr read };
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
allow auditctl_t auditd_etc_t:file r_file_perms;
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
kernel_read_kernel_sysctl(auditctl_t)
|
|
Chris PeBenito |
3c8f6b |
kernel_read_proc_symlinks(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
3c8f6b |
domain_read_all_domains_state(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
domain_use_wide_inherit_fd(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
bf080a |
mls_file_read_up(auditctl_t)
|
|
Chris PeBenito |
bf080a |
|
|
Chris PeBenito |
605ba2 |
init_use_script_pty(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
init_dontaudit_use_fd(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
locallogin_dontaudit_use_fd(auditctl_t)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
2db2c7 |
logging_send_syslog_msg(auditctl_t)
|
|
Chris PeBenito |
2db2c7 |
|
|
Chris PeBenito |
33acca |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
33acca |
term_use_generic_pty(auditctl_t)
|
|
Chris PeBenito |
33acca |
term_use_unallocated_tty(auditctl_t)
|
|
Chris PeBenito |
33acca |
')
|
|
Chris PeBenito |
33acca |
|
|
Chris PeBenito |
605ba2 |
ifdef(`TODO',`
|
|
Chris PeBenito |
605ba2 |
role secadm_r types auditctl_t;
|
|
Chris PeBenito |
605ba2 |
role sysadm_r types auditctl_t;
|
|
Chris PeBenito |
605ba2 |
audit_manager_domain(secadm_t)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
ifdef(`targeted_policy', `', `
|
|
Chris PeBenito |
a52492 |
ifdef(`enable_mls', `
|
|
Chris PeBenito |
a52492 |
audit_manager_domain(secadm_t)
|
|
Chris PeBenito |
a52492 |
', `
|
|
Chris PeBenito |
605ba2 |
audit_manager_domain(sysadm_t)
|
|
Chris PeBenito |
605ba2 |
')
|
|
Chris PeBenito |
a52492 |
allow auditctl_t admin_tty_type:chr_file rw_file_perms;
|
|
Chris PeBenito |
605ba2 |
')
|
|
Chris PeBenito |
605ba2 |
') dnl end TODO
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
########################################
|
|
Chris PeBenito |
605ba2 |
#
|
|
Chris PeBenito |
605ba2 |
# Auditd local policy
|
|
Chris PeBenito |
605ba2 |
#
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
a28f6d |
allow auditd_t self:capability { audit_write audit_control sys_nice sys_resource };
|
|
Chris PeBenito |
eb7f9a |
dontaudit auditd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
9d3bdc |
allow auditd_t self:process { signal_perms setsched };
|
|
Chris PeBenito |
605ba2 |
allow auditd_t self:file { getattr read write };
|
|
Chris PeBenito |
605ba2 |
allow auditd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
605ba2 |
allow auditd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay nlmsg_readpriv };
|
|
Chris PeBenito |
7b062e |
allow auditd_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
605ba2 |
allow auditd_t auditd_etc_t:file r_file_perms;
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
605ba2 |
allow auditd_t auditd_log_t:dir rw_dir_perms;
|
|
Chris PeBenito |
cc41a9 |
allow auditd_t auditd_log_t:file create_file_perms;
|
|
Chris PeBenito |
7a6d42 |
allow auditd_t auditd_log_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
605ba2 |
allow auditd_t var_log_t:dir search;
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
cc41a9 |
allow auditd_t auditd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
2db2c7 |
allow auditd_t auditd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(auditd_t,auditd_var_run_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
eb7f9a |
kernel_read_kernel_sysctl(auditd_t)
|
|
Chris PeBenito |
a42ca7 |
kernel_list_proc(auditd_t)
|
|
Chris PeBenito |
a42ca7 |
kernel_read_proc_symlinks(auditd_t)
|
|
Chris PeBenito |
d35c62 |
|
|
Chris PeBenito |
8bd678 |
dev_read_sysfs(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
0fd9dc |
fs_getattr_all_fs(auditd_t)
|
|
Chris PeBenito |
ab940a |
fs_search_auto_mountpoints(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
0fd9dc |
term_dontaudit_use_console(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
77f6e2 |
# cjp: why?
|
|
Chris PeBenito |
77f6e2 |
corecmd_exec_sbin(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
c9428d |
domain_use_wide_inherit_fd(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
8fd367 |
files_read_etc_files(auditd_t)
|
|
Chris PeBenito |
603f90 |
files_list_usr(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
77f6e2 |
init_use_fd(auditd_t)
|
|
Chris PeBenito |
77f6e2 |
init_exec(auditd_t)
|
|
Chris PeBenito |
77f6e2 |
init_write_initctl(auditd_t)
|
|
Chris PeBenito |
77f6e2 |
init_use_script_pty(auditd_t)
|
|
Chris PeBenito |
77f6e2 |
|
|
Chris PeBenito |
c9428d |
logging_send_syslog_msg(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
c9428d |
libs_use_ld_so(auditd_t)
|
|
Chris PeBenito |
c9428d |
libs_use_shared_libs(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
eb7f9a |
miscfiles_read_localization(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
2db2c7 |
mls_file_read_up(auditd_t)
|
|
Chris PeBenito |
bf080a |
mls_rangetrans_target(auditd_t)
|
|
Chris PeBenito |
2db2c7 |
|
|
Chris PeBenito |
2db2c7 |
seutil_dontaudit_read_config(auditd_t)
|
|
Chris PeBenito |
f0574f |
|
|
Chris PeBenito |
ab940a |
userdom_dontaudit_use_unpriv_user_fd(auditd_t)
|
|
Chris PeBenito |
ae9e27 |
userdom_dontaudit_search_sysadm_home_dir(auditd_t)
|
|
Chris PeBenito |
e5f806 |
# cjp: this is questionable
|
|
Chris PeBenito |
fd89e1 |
userdom_use_sysadm_tty(auditd_t)
|
|
Chris PeBenito |
ab940a |
|
|
Chris PeBenito |
33acca |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
33acca |
term_dontaudit_use_generic_pty(auditd_t)
|
|
Chris PeBenito |
33acca |
term_dontaudit_use_unallocated_tty(auditd_t)
|
|
Chris PeBenito |
33acca |
unconfined_dontaudit_read_pipe(auditd_t)
|
|
Chris PeBenito |
33acca |
')
|
|
Chris PeBenito |
33acca |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
8fd367 |
seutil_sigchld_newrole(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
')
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
c9428d |
udev_read_db(auditd_t)
|
|
Chris PeBenito |
eb7f9a |
')
|
|
Chris PeBenito |
eb7f9a |
|
|
Chris PeBenito |
eb7f9a |
########################################
|
|
Chris PeBenito |
eb7f9a |
#
|
|
Chris PeBenito |
4ddc1a |
# klogd local policy
|
|
Chris PeBenito |
4ddc1a |
#
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
2e0a88 |
allow klogd_t self:capability sys_admin;
|
|
Chris PeBenito |
2e0a88 |
dontaudit klogd_t self:capability { sys_resource sys_tty_config };
|
|
Chris PeBenito |
2e0a88 |
allow klogd_t self:process signal_perms;
|
|
Chris PeBenito |
2e0a88 |
|
|
Chris PeBenito |
3b857e |
allow klogd_t klogd_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
4614e8 |
allow klogd_t klogd_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_tmp(klogd_t,klogd_tmp_t,{ file dir })
|
|
Chris PeBenito |
daa0e0 |
|
|
Chris PeBenito |
3b857e |
allow klogd_t klogd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
9ca7e7 |
allow klogd_t klogd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(klogd_t,klogd_var_run_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4ddc1a |
kernel_read_system_state(klogd_t)
|
|
Chris PeBenito |
219bcf |
kernel_read_messages(klogd_t)
|
|
Chris PeBenito |
d1b9d9 |
kernel_read_kernel_sysctl(klogd_t)
|
|
Chris PeBenito |
219bcf |
# Control syslog and console logging
|
|
Chris PeBenito |
219bcf |
kernel_clear_ring_buffer(klogd_t)
|
|
Chris PeBenito |
219bcf |
kernel_change_ring_buffer_level(klogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
219bcf |
bootloader_read_kernel_symbol_table(klogd_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Karl MacMillan |
f0c985 |
dev_read_raw_memory(klogd_t)
|
|
Chris PeBenito |
d1b9d9 |
dev_read_sysfs(klogd_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
0fd9dc |
fs_getattr_all_fs(klogd_t)
|
|
Chris PeBenito |
d1b9d9 |
fs_search_auto_mountpoints(klogd_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
4614e8 |
term_dontaudit_use_console(klogd_t)
|
|
Chris PeBenito |
4614e8 |
|
|
Chris PeBenito |
b7e182 |
domain_use_wide_inherit_fd(klogd_t)
|
|
Chris PeBenito |
b7e182 |
|
|
Chris PeBenito |
c9428d |
files_read_etc_runtime_files(klogd_t)
|
|
Chris PeBenito |
4ddc1a |
# read /etc/nsswitch.conf
|
|
Chris PeBenito |
8fd367 |
files_read_etc_files(klogd_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
c9428d |
init_use_fd(klogd_t)
|
|
Chris PeBenito |
d1b9d9 |
init_use_script_pty(klogd_t)
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
c9428d |
libs_use_ld_so(klogd_t)
|
|
Chris PeBenito |
c9428d |
libs_use_shared_libs(klogd_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
c9428d |
logging_send_syslog_msg(klogd_t)
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
daa0e0 |
miscfiles_read_localization(klogd_t)
|
|
Chris PeBenito |
daa0e0 |
|
|
Chris PeBenito |
bf080a |
mls_file_read_up(klogd_t)
|
|
Chris PeBenito |
bf080a |
|
|
Chris PeBenito |
725926 |
userdom_dontaudit_search_sysadm_home_dir(klogd_t)
|
|
Chris PeBenito |
725926 |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
d1b9d9 |
udev_read_db(klogd_t)
|
|
Chris PeBenito |
98a8ea |
')
|
|
Chris PeBenito |
d1b9d9 |
|
|
Chris PeBenito |
d1b9d9 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
d1b9d9 |
term_dontaudit_use_generic_pty(klogd_t)
|
|
Chris PeBenito |
d1b9d9 |
term_dontaudit_use_unallocated_tty(klogd_t)
|
|
Chris PeBenito |
98a8ea |
')
|
|
Chris PeBenito |
98a8ea |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
725926 |
seutil_sigchld_newrole(klogd_t)
|
|
Chris PeBenito |
725926 |
')
|
|
Chris PeBenito |
725926 |
|
|
Chris PeBenito |
4ddc1a |
########################################
|
|
Chris PeBenito |
4ddc1a |
#
|
|
Chris PeBenito |
4ddc1a |
# syslogd local policy
|
|
Chris PeBenito |
4ddc1a |
#
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
605ba2 |
# sys_admin chown fsetid for syslog-ng
|
|
Chris PeBenito |
0907bd |
# cjp: why net_admin!
|
|
Chris PeBenito |
605ba2 |
allow syslogd_t self:capability { dac_override sys_resource sys_tty_config net_admin sys_admin chown fsetid };
|
|
Chris PeBenito |
55f456 |
dontaudit syslogd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
d115b2 |
allow syslogd_t self:process signal_perms;
|
|
Chris PeBenito |
605ba2 |
allow syslogd_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
d115b2 |
# receive messages to be logged
|
|
Chris PeBenito |
cc41a9 |
allow syslogd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
cc41a9 |
allow syslogd_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
d115b2 |
allow syslogd_t self:unix_dgram_socket sendto;
|
|
Chris PeBenito |
cc41a9 |
allow syslogd_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
cc41a9 |
allow syslogd_t self:udp_socket { connected_socket_perms connect };
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
605ba2 |
# Create and bind to /dev/log or /var/run/log.
|
|
Chris PeBenito |
605ba2 |
allow syslogd_t devlog_t:sock_file create_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(syslogd_t,devlog_t,sock_file)
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
55f456 |
# create/append log files.
|
|
Chris PeBenito |
3b857e |
allow syslogd_t var_log_t:dir rw_dir_perms;
|
|
Chris PeBenito |
3b857e |
allow syslogd_t var_log_t:file create_file_perms;
|
|
Chris PeBenito |
605ba2 |
# Allow access for syslog-ng
|
|
Chris PeBenito |
605ba2 |
allow syslogd_t var_log_t:dir { create setattr };
|
|
Chris PeBenito |
4ddc1a |
|
|
Chris PeBenito |
55f456 |
# manage temporary files
|
|
Chris PeBenito |
3b857e |
allow syslogd_t syslogd_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
d1b9d9 |
allow syslogd_t syslogd_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_tmp(syslogd_t,syslogd_tmp_t,{ dir file })
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
3b857e |
allow syslogd_t syslogd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(syslogd_t,syslogd_var_run_t,file)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
55f456 |
# manage pid file
|
|
Chris PeBenito |
cc41a9 |
allow syslogd_t syslogd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
b9ea0f |
allow syslogd_t syslogd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(syslogd_t,syslogd_var_run_t)
|
|
Chris PeBenito |
55f456 |
|
|
Chris PeBenito |
55f456 |
kernel_read_kernel_sysctl(syslogd_t)
|
|
Chris PeBenito |
a42ca7 |
kernel_read_proc_symlinks(syslogd_t)
|
|
Chris PeBenito |
712566 |
kernel_send_syslog_msg_from(devlog_t,syslogd_t)
|
|
Chris PeBenito |
605ba2 |
# Allow access to /proc/kmsg for syslog-ng
|
|
Chris PeBenito |
d3f715 |
kernel_read_messages(syslogd_t)
|
|
Chris PeBenito |
d3f715 |
kernel_clear_ring_buffer(syslogd_t)
|
|
Chris PeBenito |
d3f715 |
kernel_change_ring_buffer_level(syslogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
9d5949 |
dev_filetrans_dev_node(syslogd_t,devlog_t,sock_file)
|
|
Chris PeBenito |
d35c62 |
dev_read_sysfs(syslogd_t)
|
|
Chris PeBenito |
55f456 |
|
|
Chris PeBenito |
ab940a |
fs_search_auto_mountpoints(syslogd_t)
|
|
Chris PeBenito |
ab940a |
|
|
Chris PeBenito |
0fd9dc |
term_dontaudit_use_console(syslogd_t)
|
|
Chris PeBenito |
daa0e0 |
# Allow syslog to a terminal
|
|
Chris PeBenito |
0fd9dc |
term_write_unallocated_ttys(syslogd_t)
|
|
Chris PeBenito |
daa0e0 |
|
|
Chris PeBenito |
daa0e0 |
# for sending messages to logged in users
|
|
Chris PeBenito |
68228b |
init_read_utmp(syslogd_t)
|
|
Chris PeBenito |
68228b |
init_dontaudit_write_utmp(syslogd_t)
|
|
Chris PeBenito |
0fd9dc |
term_write_all_user_ttys(syslogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
0fd9dc |
corenet_raw_sendrecv_all_if(syslogd_t)
|
|
Chris PeBenito |
0fd9dc |
corenet_udp_sendrecv_all_if(syslogd_t)
|
|
Chris PeBenito |
0fd9dc |
corenet_raw_sendrecv_all_nodes(syslogd_t)
|
|
Chris PeBenito |
0fd9dc |
corenet_udp_sendrecv_all_nodes(syslogd_t)
|
|
Chris PeBenito |
0fd9dc |
corenet_udp_sendrecv_all_ports(syslogd_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(syslogd_t)
|
|
Chris PeBenito |
0fd9dc |
corenet_udp_bind_all_nodes(syslogd_t)
|
|
Chris PeBenito |
605ba2 |
corenet_tcp_bind_syslogd_port(syslogd_t)
|
|
Chris PeBenito |
a52492 |
corenet_udp_bind_syslogd_port(syslogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
0fd9dc |
fs_getattr_all_fs(syslogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
c9428d |
init_use_fd(syslogd_t)
|
|
Chris PeBenito |
c9428d |
init_use_script_pty(syslogd_t)
|
|
Chris PeBenito |
55f456 |
|
|
Chris PeBenito |
c9428d |
domain_use_wide_inherit_fd(syslogd_t)
|
|
Chris PeBenito |
25baab |
|
|
Chris PeBenito |
8fd367 |
files_read_etc_files(syslogd_t)
|
|
Chris PeBenito |
77f6e2 |
files_read_etc_runtime_files(syslogd_t)
|
|
Chris PeBenito |
605ba2 |
# /initrd is not umounted before minilog starts
|
|
Chris PeBenito |
605ba2 |
files_dontaudit_search_isid_type_dir(syslogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
c9428d |
libs_use_ld_so(syslogd_t)
|
|
Chris PeBenito |
c9428d |
libs_use_shared_libs(syslogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
b0bdeb |
# cjp: this doesnt make sense
|
|
Chris PeBenito |
b0bdeb |
logging_send_syslog_msg(syslogd_t)
|
|
Chris PeBenito |
b0bdeb |
|
|
Chris PeBenito |
c9428d |
sysnet_read_config(syslogd_t)
|
|
Chris PeBenito |
91a7ab |
|
|
Chris PeBenito |
219bcf |
miscfiles_read_localization(syslogd_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
c9428d |
userdom_dontaudit_use_unpriv_user_fd(syslogd_t)
|
|
Chris PeBenito |
ae9e27 |
userdom_dontaudit_search_sysadm_home_dir(syslogd_t)
|
|
Chris PeBenito |
daa0e0 |
|
|
Chris PeBenito |
605ba2 |
ifdef(`distro_suse',`
|
|
Chris PeBenito |
a5f339 |
# suse creates a /dev/log under /var/lib/stunnel for chrooted stunnel
|
|
Chris PeBenito |
9d5949 |
files_filetrans_var_lib(syslogd_t,devlog_t,sock_file)
|
|
Chris PeBenito |
a5f339 |
')
|
|
Chris PeBenito |
a5f339 |
|
|
Chris PeBenito |
605ba2 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
605ba2 |
allow syslogd_t var_run_t:fifo_file { ioctl read write };
|
|
Chris PeBenito |
0fd9dc |
term_dontaudit_use_unallocated_tty(syslogd_t)
|
|
Chris PeBenito |
31908b |
term_dontaudit_use_generic_pty(syslogd_t)
|
|
Chris PeBenito |
c9428d |
files_dontaudit_read_root_file(syslogd_t)
|
|
Chris PeBenito |
3b857e |
')
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
132880 |
optional_policy(`inn',`
|
|
Chris PeBenito |
9b0640 |
inn_manage_log(syslogd_t)
|
|
Chris PeBenito |
9b0640 |
')
|
|
Chris PeBenito |
9b0640 |
|
|
Chris PeBenito |
132880 |
optional_policy(`nis',`
|
|
Chris PeBenito |
ab940a |
nis_use_ypbind(syslogd_t)
|
|
Chris PeBenito |
ab940a |
')
|
|
Chris PeBenito |
ab940a |
|
|
Chris PeBenito |
132880 |
optional_policy(`nscd',`
|
|
Chris PeBenito |
77f6e2 |
nscd_use_socket(syslogd_t)
|
|
Chris PeBenito |
77f6e2 |
')
|
|
Chris PeBenito |
77f6e2 |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
8fd367 |
seutil_sigchld_newrole(syslogd_t)
|
|
Chris PeBenito |
25baab |
')
|
|
Chris PeBenito |
25baab |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
c9428d |
udev_read_db(syslogd_t)
|
|
Chris PeBenito |
25baab |
')
|
|
Chris PeBenito |
25baab |
|
|
Chris PeBenito |
219bcf |
ifdef(`TODO',`
|
|
Chris PeBenito |
605ba2 |
allow syslogd_t tmpfs_t:dir search;
|
|
Chris PeBenito |
605ba2 |
dontaudit syslogd_t { userpty_type devpts_t }:chr_file getattr;
|
|
Chris PeBenito |
605ba2 |
|
|
Chris PeBenito |
219bcf |
# log to the xconsole
|
|
Chris PeBenito |
219bcf |
allow syslogd_t xconsole_device_t:fifo_file { ioctl read write };
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
219bcf |
#
|
|
Chris PeBenito |
219bcf |
# Special case to handle crashes
|
|
Chris PeBenito |
219bcf |
#
|
|
Chris PeBenito |
605ba2 |
allow syslogd_t { device_t file_t }:sock_file { getattr unlink };
|
|
Chris PeBenito |
219bcf |
') dnl end TODO
|