2010-12-13 14:12:22 +00:00
|
|
|
policy_module(kdump, 1.2.0)
|
2009-09-02 12:33:25 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type kdump_t;
|
|
|
|
type kdump_exec_t;
|
|
|
|
init_system_domain(kdump_t, kdump_exec_t)
|
|
|
|
|
|
|
|
type kdump_etc_t;
|
|
|
|
files_config_file(kdump_etc_t)
|
|
|
|
|
|
|
|
type kdump_initrc_exec_t;
|
|
|
|
init_script_file(kdump_initrc_exec_t)
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
#
|
|
|
|
# kdump local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow kdump_t self:capability { sys_boot dac_override };
|
|
|
|
|
|
|
|
read_files_pattern(kdump_t, kdump_etc_t, kdump_etc_t)
|
|
|
|
|
|
|
|
files_read_etc_runtime_files(kdump_t)
|
|
|
|
files_read_kernel_img(kdump_t)
|
|
|
|
|
|
|
|
kernel_read_system_state(kdump_t)
|
2009-11-25 15:04:40 +00:00
|
|
|
kernel_read_core_if(kdump_t)
|
2010-09-17 19:56:06 +00:00
|
|
|
kernel_read_debugfs(kdump_t)
|
|
|
|
kernel_request_load_module(kdump_t)
|
2009-09-02 12:33:25 +00:00
|
|
|
|
|
|
|
dev_read_framebuffer(kdump_t)
|
|
|
|
dev_read_sysfs(kdump_t)
|
|
|
|
|
|
|
|
term_use_console(kdump_t)
|