selinux-policy/refpolicy/policy/modules/admin/dmidecode.te
2005-09-27 21:24:01 +00:00

32 lines
537 B
Plaintext

policy_module(dmidecode,1.0)
########################################
#
# Declarations
#
type dmidecode_t;
domain_type(dmidecode_t)
role system_r types dmidecode_t;
type dmidecode_exec_t;
domain_entry_file(dmidecode_t,dmidecode_exec_t)
########################################
#
# Local policy
#
allow dmidecode_t self:capability sys_rawio;
# Allow dmidecode to read /dev/mem
dev_read_raw_memory(dmidecode_t)
term_list_ptys(dmidecode_t)
files_list_usr(dmidecode_t)
libs_use_ld_so(dmidecode_t)
libs_use_shared_libs(dmidecode_t)