|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
policy_module(dmesg, 1.0)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
########################################
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
# Declarations
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
type dmesg_t;
|
|
Chris PeBenito |
c22038 |
type dmesg_exec_t;
|
|
Chris PeBenito |
c9428d |
init_system_domain(dmesg_t,dmesg_exec_t)
|
|
Chris PeBenito |
c22038 |
role system_r types dmesg_t;
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
########################################
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
# Local policy
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
allow dmesg_t self:capability sys_admin;
|
|
Chris PeBenito |
c22038 |
dontaudit dmesg_t self:capability sys_tty_config;
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
dc67f7 |
allow dmesg_t self:process signal_perms;
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
kernel_read_kernel_sysctl(dmesg_t)
|
|
Chris PeBenito |
c22038 |
kernel_read_ring_buffer(dmesg_t)
|
|
Chris PeBenito |
c22038 |
kernel_clear_ring_buffer(dmesg_t)
|
|
Chris PeBenito |
c22038 |
kernel_change_ring_buffer_level(dmesg_t)
|
|
Chris PeBenito |
b24f35 |
kernel_list_proc(dmesg_t)
|
|
Chris PeBenito |
b24f35 |
kernel_read_proc_symlinks(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
ab940a |
dev_read_sysfs(dmesg_t)
|
|
Chris PeBenito |
ab940a |
|
|
Chris PeBenito |
ab940a |
fs_search_auto_mountpoints(dmesg_t)
|
|
Chris PeBenito |
ab940a |
|
|
Chris PeBenito |
0fd9dc |
term_dontaudit_use_console(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c9428d |
domain_use_wide_inherit_fd(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
139520 |
files_list_etc(dmesg_t)
|
|
Chris PeBenito |
3b857e |
# for when /usr is not mounted:
|
|
Chris PeBenito |
c9428d |
files_dontaudit_search_isid_type_dir(dmesg_t)
|
|
Chris PeBenito |
d490eb |
|
|
Chris PeBenito |
c9428d |
init_use_fd(dmesg_t)
|
|
Chris PeBenito |
c9428d |
init_use_script_pty(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c9428d |
libs_use_ld_so(dmesg_t)
|
|
Chris PeBenito |
c9428d |
libs_use_shared_libs(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c9428d |
logging_send_syslog_msg(dmesg_t)
|
|
Chris PeBenito |
c9428d |
logging_write_generic_logs(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
miscfiles_read_localization(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c9428d |
userdom_use_sysadm_terms(dmesg_t)
|
|
Chris PeBenito |
c9428d |
userdom_dontaudit_use_unpriv_user_fd(dmesg_t)
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
254bbc |
ifdef(`targeted_policy', `
|
|
Chris PeBenito |
0fd9dc |
term_dontaudit_use_unallocated_tty(dmesg_t)
|
|
Chris PeBenito |
31908b |
term_dontaudit_use_generic_pty(dmesg_t)
|
|
Chris PeBenito |
c9428d |
files_dontaudit_read_root_file(dmesg_t)
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
ae9e27 |
optional_policy(`selinuxutil.te',`
|
|
Chris PeBenito |
8fd367 |
seutil_sigchld_newrole(dmesg_t)
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
optional_policy(`udev.te', `
|
|
Chris PeBenito |
c9428d |
udev_read_db(dmesg_t)
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
ifdef(`TODO',`
|
|
Chris PeBenito |
ab940a |
optional_policy(`rhgb.te',`
|
|
Chris PeBenito |
ab940a |
rhgb_domain(dmesg_t)
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
') dnl endif TODO
|