From: pebenito@ieee.org (Chris PeBenito) Date: Sat, 13 Aug 2016 09:13:51 -0400 Subject: [refpolicy] [PATCH 1/2] Restrict the cpucontrol_conf_t label In-Reply-To: <1470670867.10405.6.camel@trentalancia.net> References: <1470670867.10405.6.camel@trentalancia.net> Message-ID: To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 08/08/16 11:41, Guido Trentalancia wrote: > Restrict the cpucontrol_conf_t label to the CPU microcode data files only. > > This patch should be applied together with another patch which creates the > proper lib_t label for other files under directory /lib/firmware. > > Signed-off-by: Guido Trentalancia > --- > policy/modules/contrib/cpucontrol.fc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- refpolicy-git-06082016-orig/policy/modules/contrib/cpucontrol.fc 2016-08-08 16:46:15.926566491 +0200 > +++ refpolicy-git-06082016/policy/modules/contrib/cpucontrol.fc 2016-08-08 16:47:08.509975229 +0200 > @@ -1,4 +1,4 @@ > -/lib/firmware/.* -- gen_context(system_u:object_r:cpucontrol_conf_t,s0) > +/lib/firmware/microcode.*\.dat -- gen_context(system_u:object_r:cpucontrol_conf_t,s0) > /etc/rc\.d/init\.d/microcode -- gen_context(system_u:object_r:cpucontrol_conf_t,s0) > > /sbin/microcode_ctl -- gen_context(system_u:object_r:cpucontrol_exec_t,s0) I manually applied this patch. -- Chris PeBenito