Chris PeBenito 17ec8c
policy_module(dmidecode, 1.4.0)
Chris PeBenito 20e306
Chris PeBenito 20e306
########################################
Chris PeBenito 20e306
#
Chris PeBenito 20e306
# Declarations
Chris PeBenito 20e306
#
Chris PeBenito 20e306
Chris PeBenito 20e306
type dmidecode_t;
Chris PeBenito 20e306
type dmidecode_exec_t;
Chris PeBenito 0bfccd
application_domain(dmidecode_t, dmidecode_exec_t)
Chris PeBenito d46cfe
role system_r types dmidecode_t;
Chris PeBenito 20e306
Chris PeBenito 20e306
########################################
Chris PeBenito 20e306
#
Chris PeBenito 20e306
# Local policy
Chris PeBenito 20e306
#
Chris PeBenito 20e306
Chris PeBenito 20e306
allow dmidecode_t self:capability sys_rawio;
Chris PeBenito 20e306
Chris PeBenito cdf98f
dev_read_sysfs(dmidecode_t)
Chris PeBenito 20e306
# Allow dmidecode to read /dev/mem
Chris PeBenito 20e306
dev_read_raw_memory(dmidecode_t)
Chris PeBenito 20e306
Chris PeBenito f8233a
mls_file_read_all_levels(dmidecode_t)
Chris PeBenito a3cf80
Chris PeBenito 20e306
files_list_usr(dmidecode_t)
Chris PeBenito 20e306
Chris PeBenito 1c1ac6
locallogin_use_fds(dmidecode_t)
Chris PeBenito 296273
Chris PeBenito 296273
userdom_use_user_terminals(dmidecode_t)