Skip to contentSkip to conversation

Restrict the cpucontrol_conf_t label

PATCH New Guido Trentalancia 2 participants 2 messages Aug 8, 2016 – Aug 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Restrict the cpucontrol_conf_t label

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.

---
 policy/modules/contrib/cpucontrol.fc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policy/modules/contrib/cpucontrol.fc +1 -1
@@ -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)
#1 lore raw

PATCH 1/2 Restrict the cpucontrol_conf_t label

Quoted 13 lines · Guido Trentalancia

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.

---
 policy/modules/contrib/cpucontrol.fc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

policy/modules/contrib/cpucontrol.fc line 4

Quoted 5 lines
policy/modules/contrib/cpucontrol.fc +1 -1
@@ -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.

Signature · 1 line
Chris PeBenito