Blame targeted/domains/program/dmidecode.te
|
Chris PeBenito |
ab58ad |
#DESC dmidecode - decodes DMI data for x86/ia64 bioses
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# Author: Ivan Gyurdiev <ivg2@cornell.edu>
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
type dmidecode_t, domain, privmem;
|
|
Chris PeBenito |
ab58ad |
type dmidecode_exec_t, file_type, exec_type, sysadmfile;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# Allow execution by the sysadm
|
|
Chris PeBenito |
ab58ad |
role sysadm_r types dmidecode_t;
|
|
Chris PeBenito |
ab58ad |
role system_r types dmidecode_t;
|
|
Chris PeBenito |
ab58ad |
domain_auto_trans(sysadm_t, dmidecode_exec_t, dmidecode_t)
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
uses_shlib(dmidecode_t)
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# Allow terminal access
|
|
Chris PeBenito |
ab58ad |
access_terminal(dmidecode_t, sysadm)
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# Allow dmidecode to read /dev/mem
|
|
Chris PeBenito |
ab58ad |
allow dmidecode_t memory_device_t:chr_file read;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
allow dmidecode_t self:capability sys_rawio;
|