2005-04-20 19:07:16 +00:00
|
|
|
|
2006-03-21 18:07:53 +00:00
|
|
|
policy_module(logging,1.3.1)
|
2005-04-26 17:00:25 +00:00
|
|
|
|
2005-06-07 14:27:19 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
attribute logfile;
|
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type auditctl_t;
|
2005-09-15 15:34:31 +00:00
|
|
|
type auditctl_exec_t;
|
|
|
|
init_system_domain(auditctl_t,auditctl_exec_t)
|
|
|
|
role system_r types auditctl_t;
|
|
|
|
|
2005-09-28 19:07:22 +00:00
|
|
|
type auditd_etc_t;
|
|
|
|
files_security_file(auditd_etc_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
|
2005-09-28 19:07:22 +00:00
|
|
|
type auditd_log_t;
|
|
|
|
files_security_file(auditd_log_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
|
|
|
type auditd_t;
|
2006-01-17 17:50:10 +00:00
|
|
|
# real declaration moved to mls until
|
|
|
|
# range_transition works in loadable modules
|
|
|
|
gen_require(`
|
|
|
|
type auditd_exec_t;
|
|
|
|
')
|
2005-06-13 17:35:46 +00:00
|
|
|
init_daemon_domain(auditd_t,auditd_exec_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
|
|
|
type auditd_var_run_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_pid_file(auditd_var_run_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-09-26 20:26:32 +00:00
|
|
|
type devlog_t;
|
2005-06-29 14:26:41 +00:00
|
|
|
files_type(devlog_t)
|
2005-09-26 20:26:32 +00:00
|
|
|
mls_trusted_object(devlog_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-09-26 20:26:32 +00:00
|
|
|
type klogd_t;
|
2005-04-19 20:44:52 +00:00
|
|
|
type klogd_exec_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
init_daemon_domain(klogd_t,klogd_exec_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
|
|
|
type klogd_tmp_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_tmp_file(klogd_tmp_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
|
|
|
type klogd_var_run_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_pid_file(klogd_var_run_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
|
|
|
type syslogd_t;
|
|
|
|
type syslogd_exec_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
init_daemon_domain(syslogd_t,syslogd_exec_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
|
|
|
type syslogd_tmp_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_tmp_file(syslogd_tmp_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
|
|
|
type syslogd_var_run_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_pid_file(syslogd_var_run_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-11-01 15:45:00 +00:00
|
|
|
type var_log_t;
|
|
|
|
logging_log_file(var_log_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-06-07 14:27:19 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Auditd local policy
|
|
|
|
#
|
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
allow auditctl_t self:capability { audit_write audit_control };
|
|
|
|
allow auditctl_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay nlmsg_readpriv };
|
|
|
|
|
|
|
|
libs_use_ld_so(auditctl_t)
|
|
|
|
libs_use_shared_libs(auditctl_t)
|
|
|
|
|
|
|
|
allow auditctl_t etc_t:file { getattr read };
|
|
|
|
|
|
|
|
allow auditctl_t auditd_etc_t:file r_file_perms;
|
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(auditctl_t)
|
2005-12-06 15:23:59 +00:00
|
|
|
kernel_read_proc_symlinks(auditctl_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
|
2005-12-06 15:23:59 +00:00
|
|
|
domain_read_all_domains_state(auditctl_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(auditctl_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
|
2006-01-06 22:51:40 +00:00
|
|
|
mls_file_read_up(auditctl_t)
|
|
|
|
|
2006-02-13 22:05:08 +00:00
|
|
|
term_use_all_terms(auditctl_t)
|
|
|
|
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(auditctl_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
init_dontaudit_use_fds(auditctl_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
locallogin_dontaudit_use_fds(auditctl_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
|
2005-10-24 00:54:39 +00:00
|
|
|
logging_send_syslog_msg(auditctl_t)
|
|
|
|
|
2005-10-26 16:00:13 +00:00
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_use_generic_ptys(auditctl_t)
|
|
|
|
term_use_unallocated_ttys(auditctl_t)
|
2005-10-26 16:00:13 +00:00
|
|
|
')
|
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
ifdef(`TODO',`
|
|
|
|
role secadm_r types auditctl_t;
|
|
|
|
role sysadm_r types auditctl_t;
|
|
|
|
audit_manager_domain(secadm_t)
|
|
|
|
|
|
|
|
ifdef(`targeted_policy', `', `
|
2006-01-25 15:53:35 +00:00
|
|
|
ifdef(`enable_mls', `
|
|
|
|
audit_manager_domain(secadm_t)
|
|
|
|
', `
|
2005-09-15 15:34:31 +00:00
|
|
|
audit_manager_domain(sysadm_t)
|
|
|
|
')
|
2006-01-25 15:53:35 +00:00
|
|
|
allow auditctl_t admin_tty_type:chr_file rw_file_perms;
|
2005-09-15 15:34:31 +00:00
|
|
|
')
|
|
|
|
') dnl end TODO
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Auditd local policy
|
|
|
|
#
|
|
|
|
|
2005-07-20 13:30:06 +00:00
|
|
|
allow auditd_t self:capability { audit_write audit_control sys_nice sys_resource };
|
2005-06-07 14:27:19 +00:00
|
|
|
dontaudit auditd_t self:capability sys_tty_config;
|
2006-02-13 22:05:08 +00:00
|
|
|
allow auditd_t self:process { signal_perms setpgid setsched };
|
2005-09-15 15:34:31 +00:00
|
|
|
allow auditd_t self:file { getattr read write };
|
|
|
|
allow auditd_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow auditd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay nlmsg_readpriv };
|
2005-11-15 16:34:10 +00:00
|
|
|
allow auditd_t self:fifo_file rw_file_perms;
|
2005-09-15 15:34:31 +00:00
|
|
|
|
|
|
|
allow auditd_t auditd_etc_t:file r_file_perms;
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
allow auditd_t auditd_log_t:dir rw_dir_perms;
|
2005-06-09 18:08:26 +00:00
|
|
|
allow auditd_t auditd_log_t:file create_file_perms;
|
2005-10-25 20:22:25 +00:00
|
|
|
allow auditd_t auditd_log_t:lnk_file create_lnk_perms;
|
2005-09-15 15:34:31 +00:00
|
|
|
allow auditd_t var_log_t:dir search;
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-06-09 18:08:26 +00:00
|
|
|
allow auditd_t auditd_var_run_t:file create_file_perms;
|
2005-10-24 00:54:39 +00:00
|
|
|
allow auditd_t auditd_var_run_t:dir rw_dir_perms;
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(auditd_t,auditd_var_run_t,file)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(auditd_t)
|
2005-07-08 20:44:57 +00:00
|
|
|
kernel_list_proc(auditd_t)
|
|
|
|
kernel_read_proc_symlinks(auditd_t)
|
2005-06-16 20:33:51 +00:00
|
|
|
|
2005-06-14 19:56:46 +00:00
|
|
|
dev_read_sysfs(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
fs_getattr_all_fs(auditd_t)
|
2005-06-27 16:30:55 +00:00
|
|
|
fs_search_auto_mountpoints(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
term_dontaudit_use_console(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-10-13 20:59:36 +00:00
|
|
|
# cjp: why?
|
|
|
|
corecmd_exec_sbin(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-06-29 14:26:41 +00:00
|
|
|
files_read_etc_files(auditd_t)
|
2005-09-05 18:17:17 +00:00
|
|
|
files_list_usr(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(auditd_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
init_exec(auditd_t)
|
|
|
|
init_write_initctl(auditd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(auditd_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_send_syslog_msg(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
libs_use_ld_so(auditd_t)
|
|
|
|
libs_use_shared_libs(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(auditd_t)
|
|
|
|
|
2005-10-24 00:54:39 +00:00
|
|
|
mls_file_read_up(auditd_t)
|
2006-01-06 22:51:40 +00:00
|
|
|
mls_rangetrans_target(auditd_t)
|
2005-10-24 00:54:39 +00:00
|
|
|
|
|
|
|
seutil_dontaudit_read_config(auditd_t)
|
2005-09-26 20:26:32 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(auditd_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(auditd_t)
|
2005-07-07 15:25:28 +00:00
|
|
|
# cjp: this is questionable
|
2006-02-02 21:08:12 +00:00
|
|
|
userdom_use_sysadm_ttys(auditd_t)
|
2005-06-27 16:30:55 +00:00
|
|
|
|
2005-10-26 16:00:13 +00:00
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_generic_ptys(auditd_t)
|
|
|
|
term_dontaudit_use_unallocated_ttys(auditd_t)
|
|
|
|
unconfined_dontaudit_read_pipes(auditd_t)
|
2005-10-26 16:00:13 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-29 14:26:41 +00:00
|
|
|
seutil_sigchld_newrole(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-13 17:35:46 +00:00
|
|
|
udev_read_db(auditd_t)
|
2005-06-07 14:27:19 +00:00
|
|
|
')
|
|
|
|
|
2005-04-19 20:44:52 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# klogd local policy
|
|
|
|
#
|
|
|
|
|
2005-11-10 21:37:54 +00:00
|
|
|
allow klogd_t self:capability sys_admin;
|
|
|
|
dontaudit klogd_t self:capability { sys_resource sys_tty_config };
|
|
|
|
allow klogd_t self:process signal_perms;
|
|
|
|
|
2005-05-31 21:25:45 +00:00
|
|
|
allow klogd_t klogd_tmp_t:file create_file_perms;
|
2005-10-26 21:03:19 +00:00
|
|
|
allow klogd_t klogd_tmp_t:dir create_dir_perms;
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(klogd_t,klogd_tmp_t,{ file dir })
|
2005-05-19 21:06:06 +00:00
|
|
|
|
2005-05-31 21:25:45 +00:00
|
|
|
allow klogd_t klogd_var_run_t:file create_file_perms;
|
2005-10-31 20:54:33 +00:00
|
|
|
allow klogd_t klogd_var_run_t:dir rw_dir_perms;
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(klogd_t,klogd_var_run_t,file)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(klogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
kernel_read_messages(klogd_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(klogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
# Control syslog and console logging
|
|
|
|
kernel_clear_ring_buffer(klogd_t)
|
|
|
|
kernel_change_ring_buffer_level(klogd_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
files_read_kernel_symbol_table(klogd_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-06-13 16:22:32 +00:00
|
|
|
dev_read_raw_memory(klogd_t)
|
2005-10-26 18:07:20 +00:00
|
|
|
dev_read_sysfs(klogd_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
fs_getattr_all_fs(klogd_t)
|
2005-10-26 18:07:20 +00:00
|
|
|
fs_search_auto_mountpoints(klogd_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-10-26 21:03:19 +00:00
|
|
|
term_dontaudit_use_console(klogd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(klogd_t)
|
2005-10-25 19:20:56 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_read_etc_runtime_files(klogd_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
# read /etc/nsswitch.conf
|
2005-06-29 14:26:41 +00:00
|
|
|
files_read_etc_files(klogd_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(klogd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(klogd_t)
|
2005-05-31 21:25:45 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
libs_use_ld_so(klogd_t)
|
|
|
|
libs_use_shared_libs(klogd_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_send_syslog_msg(klogd_t)
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-05-19 21:06:06 +00:00
|
|
|
miscfiles_read_localization(klogd_t)
|
|
|
|
|
2006-01-06 22:51:40 +00:00
|
|
|
mls_file_read_up(klogd_t)
|
|
|
|
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(klogd_t)
|
2005-11-08 22:00:30 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-26 18:07:20 +00:00
|
|
|
udev_read_db(klogd_t)
|
2005-09-15 21:03:29 +00:00
|
|
|
')
|
2005-10-26 18:07:20 +00:00
|
|
|
|
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_generic_ptys(klogd_t)
|
|
|
|
term_dontaudit_use_unallocated_ttys(klogd_t)
|
2005-09-15 21:03:29 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-08 22:00:30 +00:00
|
|
|
seutil_sigchld_newrole(klogd_t)
|
|
|
|
')
|
|
|
|
|
2005-04-19 20:44:52 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# syslogd local policy
|
|
|
|
#
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
# sys_admin chown fsetid for syslog-ng
|
2005-09-13 13:06:07 +00:00
|
|
|
# cjp: why net_admin!
|
2005-09-15 15:34:31 +00:00
|
|
|
allow syslogd_t self:capability { dac_override sys_resource sys_tty_config net_admin sys_admin chown fsetid };
|
2005-04-27 21:56:41 +00:00
|
|
|
dontaudit syslogd_t self:capability sys_tty_config;
|
2005-05-31 23:02:11 +00:00
|
|
|
allow syslogd_t self:process signal_perms;
|
2005-09-15 15:34:31 +00:00
|
|
|
allow syslogd_t self:netlink_route_socket r_netlink_socket_perms;
|
2005-05-31 23:02:11 +00:00
|
|
|
# receive messages to be logged
|
2005-06-09 18:08:26 +00:00
|
|
|
allow syslogd_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow syslogd_t self:unix_stream_socket create_stream_socket_perms;
|
2005-05-31 23:02:11 +00:00
|
|
|
allow syslogd_t self:unix_dgram_socket sendto;
|
2005-06-09 18:08:26 +00:00
|
|
|
allow syslogd_t self:fifo_file rw_file_perms;
|
|
|
|
allow syslogd_t self:udp_socket { connected_socket_perms connect };
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
# Create and bind to /dev/log or /var/run/log.
|
|
|
|
allow syslogd_t devlog_t:sock_file create_file_perms;
|
2006-02-21 18:40:44 +00:00
|
|
|
files_pid_filetrans(syslogd_t,devlog_t,sock_file)
|
2005-09-15 15:34:31 +00:00
|
|
|
|
2005-04-27 21:56:41 +00:00
|
|
|
# create/append log files.
|
2005-05-31 21:25:45 +00:00
|
|
|
allow syslogd_t var_log_t:dir rw_dir_perms;
|
|
|
|
allow syslogd_t var_log_t:file create_file_perms;
|
2005-09-15 15:34:31 +00:00
|
|
|
# Allow access for syslog-ng
|
|
|
|
allow syslogd_t var_log_t:dir { create setattr };
|
2005-04-19 20:44:52 +00:00
|
|
|
|
2005-04-27 21:56:41 +00:00
|
|
|
# manage temporary files
|
2005-05-31 21:25:45 +00:00
|
|
|
allow syslogd_t syslogd_tmp_t:file create_file_perms;
|
2005-10-26 18:07:20 +00:00
|
|
|
allow syslogd_t syslogd_tmp_t:dir create_dir_perms;
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(syslogd_t,syslogd_tmp_t,{ dir file })
|
2005-05-31 21:25:45 +00:00
|
|
|
|
|
|
|
allow syslogd_t syslogd_var_run_t:file create_file_perms;
|
2006-02-21 18:40:44 +00:00
|
|
|
files_pid_filetrans(syslogd_t,syslogd_var_run_t,file)
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2005-04-27 21:56:41 +00:00
|
|
|
# manage pid file
|
2005-06-09 18:08:26 +00:00
|
|
|
allow syslogd_t syslogd_var_run_t:file create_file_perms;
|
2005-11-01 19:52:37 +00:00
|
|
|
allow syslogd_t syslogd_var_run_t:dir rw_dir_perms;
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(syslogd_t,syslogd_var_run_t,file)
|
2005-04-27 21:56:41 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(syslogd_t)
|
2005-07-08 20:44:57 +00:00
|
|
|
kernel_read_proc_symlinks(syslogd_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
# Allow access to /proc/kmsg for syslog-ng
|
2005-11-09 15:51:22 +00:00
|
|
|
kernel_read_messages(syslogd_t)
|
|
|
|
kernel_clear_ring_buffer(syslogd_t)
|
|
|
|
kernel_change_ring_buffer_level(syslogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2006-02-21 18:40:44 +00:00
|
|
|
dev_filetrans(syslogd_t,devlog_t,sock_file)
|
2005-06-16 20:33:51 +00:00
|
|
|
dev_read_sysfs(syslogd_t)
|
2005-04-27 21:56:41 +00:00
|
|
|
|
2005-06-27 16:30:55 +00:00
|
|
|
fs_search_auto_mountpoints(syslogd_t)
|
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
term_dontaudit_use_console(syslogd_t)
|
2005-05-19 21:06:06 +00:00
|
|
|
# Allow syslog to a terminal
|
2005-06-10 01:01:13 +00:00
|
|
|
term_write_unallocated_ttys(syslogd_t)
|
2005-05-19 21:06:06 +00:00
|
|
|
|
|
|
|
# for sending messages to logged in users
|
2006-01-18 18:08:39 +00:00
|
|
|
init_read_utmp(syslogd_t)
|
|
|
|
init_dontaudit_write_utmp(syslogd_t)
|
2005-06-10 01:01:13 +00:00
|
|
|
term_write_all_user_ttys(syslogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
corenet_raw_sendrecv_all_if(syslogd_t)
|
|
|
|
corenet_udp_sendrecv_all_if(syslogd_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(syslogd_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(syslogd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(syslogd_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(syslogd_t)
|
2005-06-10 01:01:13 +00:00
|
|
|
corenet_udp_bind_all_nodes(syslogd_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
corenet_tcp_bind_syslogd_port(syslogd_t)
|
2006-01-25 15:53:35 +00:00
|
|
|
corenet_udp_bind_syslogd_port(syslogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
fs_getattr_all_fs(syslogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(syslogd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(syslogd_t)
|
2005-04-27 21:56:41 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(syslogd_t)
|
2005-05-02 19:22:58 +00:00
|
|
|
|
2005-06-29 14:26:41 +00:00
|
|
|
files_read_etc_files(syslogd_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
files_read_etc_runtime_files(syslogd_t)
|
2005-09-15 15:34:31 +00:00
|
|
|
# /initrd is not umounted before minilog starts
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_search_isid_type_dirs(syslogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
libs_use_ld_so(syslogd_t)
|
|
|
|
libs_use_shared_libs(syslogd_t)
|
2005-04-25 19:54:27 +00:00
|
|
|
|
2005-10-25 15:52:08 +00:00
|
|
|
# cjp: this doesnt make sense
|
|
|
|
logging_send_syslog_msg(syslogd_t)
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
sysnet_read_config(syslogd_t)
|
2005-04-25 21:28:25 +00:00
|
|
|
|
2005-04-25 19:54:27 +00:00
|
|
|
miscfiles_read_localization(syslogd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(syslogd_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(syslogd_t)
|
2005-05-19 21:06:06 +00:00
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
ifdef(`distro_suse',`
|
2005-07-18 18:31:49 +00:00
|
|
|
# suse creates a /dev/log under /var/lib/stunnel for chrooted stunnel
|
2006-02-21 18:40:44 +00:00
|
|
|
files_var_lib_filetrans(syslogd_t,devlog_t,sock_file)
|
2005-07-18 18:31:49 +00:00
|
|
|
')
|
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
ifdef(`targeted_policy',`
|
|
|
|
allow syslogd_t var_run_t:fifo_file { ioctl read write };
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_unallocated_ttys(syslogd_t)
|
|
|
|
term_dontaudit_use_generic_ptys(syslogd_t)
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_read_root_files(syslogd_t)
|
2005-05-31 21:25:45 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-08 13:23:11 +00:00
|
|
|
inn_manage_log(syslogd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-27 16:30:55 +00:00
|
|
|
nis_use_ypbind(syslogd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(syslogd_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-29 14:26:41 +00:00
|
|
|
seutil_sigchld_newrole(syslogd_t)
|
2005-05-02 19:22:58 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-13 17:35:46 +00:00
|
|
|
udev_read_db(syslogd_t)
|
2005-05-02 19:22:58 +00:00
|
|
|
')
|
|
|
|
|
2005-04-25 19:54:27 +00:00
|
|
|
ifdef(`TODO',`
|
2005-09-15 15:34:31 +00:00
|
|
|
allow syslogd_t tmpfs_t:dir search;
|
|
|
|
dontaudit syslogd_t { userpty_type devpts_t }:chr_file getattr;
|
|
|
|
|
2005-04-25 19:54:27 +00:00
|
|
|
# log to the xconsole
|
|
|
|
allow syslogd_t xconsole_device_t:fifo_file { ioctl read write };
|
|
|
|
|
|
|
|
#
|
|
|
|
# Special case to handle crashes
|
|
|
|
#
|
2005-09-15 15:34:31 +00:00
|
|
|
allow syslogd_t { device_t file_t }:sock_file { getattr unlink };
|
2005-04-25 19:54:27 +00:00
|
|
|
') dnl end TODO
|