Skip to contentSkip to conversation

Cpucontrol should be able to search firmware directories

PATCH Superseded Guido Trentalancia 2 participants 4 messages Aug 8, 2016 – Aug 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cpucontrol should be able to search firmware directories

After the recent creation of the new "firmware_t" type, cpucontrol_t should be able to search "firmware_t" directories in order to successfully load the CPU microcode.

---
 policy/modules/contrib/cpucontrol.te |    2 ++
 1 file changed, 2 insertions(+)
policy/modules/contrib/cpucontrol.te +2 -0
@@ -78,6 +78,8 @@ kernel_read_proc_symlinks(cpucontrol_t)
 dev_read_sysfs(cpucontrol_t)
 dev_rw_cpu_microcode(cpucontrol_t)
 
+files_search_firmware(cpucontrol_t)
+
 optional_policy(`
 	rhgb_use_ptys(cpucontrol_t)
 ')
#1 lore raw

PATCH v2 1/1 Cpucontrol should be able to search firmware directories

Cpucontrol should be able to search /lib dirs for microcode data files.

---
 policy/modules/contrib/cpucontrol.te |    3 +++
 1 file changed, 3 insertions(+)

--- refpolicy-git-06082016-orig/policy/modules/contrib/cpucontrol.te 2016-08-06
21:56:16.079262965 +0200
+++ refpolicy-git-06082016/policy/modules/contrib/cpucontrol.te 2016-08-13
23:36:22.235497464 +0200
@@ -78,6 +79,8 @@ kernel_read_proc_symlinks(cpucontrol_t)
dev_read_sysfs(cpucontrol_t) dev_rw_cpu_microcode(cpucontrol_t)

+libs_search_lib(cpucontrol_t)
+
optional_policy(`
rhgb_use_ptys(cpucontrol_t)
')

#2 lore raw

PATCH v2 1/1 Cpucontrol should be able to search firmware directories

Quoted 12 lines · Guido Trentalancia

Cpucontrol should be able to search /lib dirs for microcode data files.

---
 policy/modules/contrib/cpucontrol.te |    3 +++
 1 file changed, 3 insertions(+)

--- refpolicy-git-06082016-orig/policy/modules/contrib/cpucontrol.te 2016-08-06
21:56:16.079262965 +0200
+++ refpolicy-git-06082016/policy/modules/contrib/cpucontrol.te 2016-08-13
23:36:22.235497464 +0200

policy/modules/contrib/cpucontrol.te kernel_read_proc_symlinks(cpucontrol_t) · line 83

Quoted 5 lines
policy/modules/contrib/cpucontrol.te +2 -0
@@ -78,6 +79,8 @@ kernel_read_proc_symlinks(cpucontrol_t)
 dev_read_sysfs(cpucontrol_t)
 dev_rw_cpu_microcode(cpucontrol_t)
 
+libs_search_lib(cpucontrol_t)
+

Most likely redundant. Try not to assume.

Quoted 8 lines
policy/modules/contrib/cpucontrol.te +0 -0
 optional_policy(`
 	rhgb_use_ptys(cpucontrol_t)
 ')

_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy

Signature · 11 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20160814/475a7cf5/attachment.bin