2017-02-04 18:30:53 +00:00
|
|
|
policy_module(dmesg, 1.5.0)
|
2005-05-26 15:50:53 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
type dmesg_t;
|
|
|
|
type dmesg_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_system_domain(dmesg_t, dmesg_exec_t)
|
2005-12-02 22:06:05 +00:00
|
|
|
|
2005-05-26 15:50:53 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
allow dmesg_t self:capability sys_admin;
|
|
|
|
dontaudit dmesg_t self:capability sys_tty_config;
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
allow dmesg_t self:process signal_perms;
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
kernel_read_kernel_sysctls(dmesg_t)
|
|
|
|
kernel_read_ring_buffer(dmesg_t)
|
|
|
|
kernel_clear_ring_buffer(dmesg_t)
|
|
|
|
kernel_change_ring_buffer_level(dmesg_t)
|
|
|
|
kernel_list_proc(dmesg_t)
|
|
|
|
kernel_read_proc_symlinks(dmesg_t)
|
2014-01-16 16:24:25 +00:00
|
|
|
# for when /usr is not mounted:
|
|
|
|
kernel_dontaudit_search_unlabeled(dmesg_t)
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
dev_read_sysfs(dmesg_t)
|
2005-06-27 16:30:55 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
fs_search_auto_mountpoints(dmesg_t)
|
2005-06-27 16:30:55 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
term_dontaudit_use_console(dmesg_t)
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
domain_use_interactive_fds(dmesg_t)
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
files_list_etc(dmesg_t)
|
2005-05-26 20:38:45 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
init_use_fds(dmesg_t)
|
|
|
|
init_use_script_ptys(dmesg_t)
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
logging_send_syslog_msg(dmesg_t)
|
|
|
|
logging_write_generic_logs(dmesg_t)
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
miscfiles_read_localization(dmesg_t)
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(dmesg_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_use_user_terminals(dmesg_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
seutil_sigchld_newrole(dmesg_t)
|
|
|
|
')
|
2005-05-26 15:50:53 +00:00
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
udev_read_db(dmesg_t)
|
2005-05-26 15:50:53 +00:00
|
|
|
')
|