Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/dmidecode.te

43 lines
820 B
Text

policy_module(dmidecode, 1.5.1)
########################################
#
# Declarations
#
attribute_role dmidecode_roles;
roleattribute system_r dmidecode_roles;
type dmidecode_t;
type dmidecode_exec_t;
application_domain(dmidecode_t, dmidecode_exec_t)
role dmidecode_roles types dmidecode_t;
########################################
#
# Local policy
#
allow dmidecode_t self:capability sys_rawio;
dev_read_raw_memory(dmidecode_t)
dev_read_sysfs(dmidecode_t)
domain_use_interactive_fds(dmidecode_t)
files_list_usr(dmidecode_t)
mls_file_read_all_levels(dmidecode_t)
locallogin_use_fds(dmidecode_t)
userdom_use_inherited_user_terminals(dmidecode_t)
optional_policy(`
cloudform_init_write_tmp(dmidecode_t)
')
optional_policy(`
rhsmcertd_rw_lock_files(dmidecode_t)
rhsmcertd_read_log(dmidecode_t)
')