2005-09-27 21:24:01 +00:00
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
policy_module(dmidecode,1.0.1)
|
2005-09-27 21:24:01 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
mls_file_read_up(dmidecode_t)
|
|
|
|
|
2005-09-27 21:24:01 +00:00
|
|
|
term_list_ptys(dmidecode_t)
|
|
|
|
|
|
|
|
files_list_usr(dmidecode_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(dmidecode_t)
|
|
|
|
libs_use_shared_libs(dmidecode_t)
|
2005-10-26 16:00:13 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
locallogin_use_fds(dmidecode_t)
|
2005-10-31 21:45:42 +00:00
|
|
|
|
2005-10-26 16:00:13 +00:00
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_use_generic_ptys(dmidecode_t)
|
|
|
|
term_use_unallocated_ttys(dmidecode_t)
|
2005-10-26 16:00:13 +00:00
|
|
|
')
|