From: guido@trentalancia.net (Guido Trentalancia) Date: Mon, 08 Aug 2016 17:41:07 +0200 Subject: [refpolicy] [PATCH 1/2] Restrict the cpucontrol_conf_t label Message-ID: <1470670867.10405.6.camel@trentalancia.net> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com 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)