|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
5ea24b |
policy_module(dmesg,1.0.0)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
########################################
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
# Declarations
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
6f81e1 |
ifdef(`strict_policy',`
|
|
Chris PeBenito |
9e9138 |
type dmesg_t;
|
|
Chris PeBenito |
9e9138 |
type dmesg_exec_t;
|
|
Chris PeBenito |
9e9138 |
init_system_domain(dmesg_t,dmesg_exec_t)
|
|
Chris PeBenito |
9e9138 |
role system_r types dmesg_t;
|
|
Chris PeBenito |
9e9138 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
6f81e1 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
6f81e1 |
# dmesg domain is disabled in the
|
|
Chris PeBenito |
6f81e1 |
# targeted policy. for compatibility
|
|
Chris PeBenito |
6f81e1 |
# with strict:
|
|
Chris PeBenito |
6f81e1 |
corecmd_bin_alias(dmesg_exec_t)
|
|
Chris PeBenito |
6f81e1 |
')
|
|
Chris PeBenito |
6f81e1 |
|
|
Chris PeBenito |
c22038 |
########################################
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
# Local policy
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
6f81e1 |
ifdef(`strict_policy',`
|
|
Chris PeBenito |
9e9138 |
allow dmesg_t self:capability sys_admin;
|
|
Chris PeBenito |
9e9138 |
dontaudit dmesg_t self:capability sys_tty_config;
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
allow dmesg_t self:process signal_perms;
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
kernel_read_kernel_sysctl(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
kernel_read_ring_buffer(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
kernel_clear_ring_buffer(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
kernel_change_ring_buffer_level(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
kernel_list_proc(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
kernel_read_proc_symlinks(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
dev_read_sysfs(dmesg_t)
|
|
Chris PeBenito |
ab940a |
|
|
Chris PeBenito |
9e9138 |
fs_search_auto_mountpoints(dmesg_t)
|
|
Chris PeBenito |
ab940a |
|
|
Chris PeBenito |
9e9138 |
term_dontaudit_use_console(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
domain_use_wide_inherit_fd(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
files_list_etc(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
# for when /usr is not mounted:
|
|
Chris PeBenito |
9e9138 |
files_dontaudit_search_isid_type_dir(dmesg_t)
|
|
Chris PeBenito |
d490eb |
|
|
Chris PeBenito |
9e9138 |
init_use_fd(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
init_use_script_pty(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
libs_use_ld_so(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
libs_use_shared_libs(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
logging_send_syslog_msg(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
logging_write_generic_logs(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
miscfiles_read_localization(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
9e9138 |
userdom_use_sysadm_terms(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
userdom_dontaudit_use_unpriv_user_fd(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
9e9138 |
seutil_sigchld_newrole(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
9e9138 |
udev_read_db(dmesg_t)
|
|
Chris PeBenito |
9e9138 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
')
|