2005-09-27 21:24:01 +00:00
|
|
|
|
2008-12-10 19:38:10 +00:00
|
|
|
policy_module(dmidecode, 1.4.0)
|
2005-09-27 21:24:01 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type dmidecode_t;
|
|
|
|
type dmidecode_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
application_domain(dmidecode_t, dmidecode_exec_t)
|
2007-07-19 18:57:48 +00:00
|
|
|
role system_r types dmidecode_t;
|
2005-09-27 21:24:01 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow dmidecode_t self:capability sys_rawio;
|
|
|
|
|
2007-10-11 18:12:29 +00:00
|
|
|
dev_read_sysfs(dmidecode_t)
|
2005-09-27 21:24:01 +00:00
|
|
|
# Allow dmidecode to read /dev/mem
|
|
|
|
dev_read_raw_memory(dmidecode_t)
|
|
|
|
|
2007-08-20 18:26:08 +00:00
|
|
|
mls_file_read_all_levels(dmidecode_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2005-09-27 21:24:01 +00:00
|
|
|
files_list_usr(dmidecode_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
locallogin_use_fds(dmidecode_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
|
|
|
|
userdom_use_user_terminals(dmidecode_t)
|