Chris PeBenito 31b7c0
#DESC cpucontrol - domain for microcode_ctl and other programs to control CPU
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Author:  Russell Coker <russell@coker.com.au>
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
type cpucontrol_conf_t, file_type, sysadmfile;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
daemon_base_domain(cpucontrol)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# Access cpu devices.
Chris PeBenito 31b7c0
allow cpucontrol_t cpu_device_t:chr_file rw_file_perms;
Chris PeBenito 31b7c0
allow cpucontrol_t device_t:lnk_file { getattr read };
Chris PeBenito 31b7c0
allow initrc_t cpu_device_t:chr_file getattr;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow cpucontrol_t self:capability sys_rawio;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
r_dir_file(cpucontrol_t, cpucontrol_conf_t)