Skip to contentSkip to conversation

Generalize grub2 pattern

PATCH New Luis Ressel 2 participants 2 messages Feb 16, 2014 – Mar 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Generalize grub2 pattern

GRUB2 helper programs can be named either grub2-* or grub-*, depending on distro and configuration.

---
 policy/modules/admin/bootloader.fc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
policy/modules/admin/bootloader.fc +2 -2
index 2626ebf..8c7e6c2 100644
@@ -7,5 +7,5 @@
 /sbin/ybin.*		--	gen_context(system_u:object_r:bootloader_exec_t,s0)
 
 /usr/sbin/grub		--	gen_context(system_u:object_r:bootloader_exec_t,s0)
-/usr/sbin/grub2-bios-setup	--	gen_context(system_u:object_r:bootloader_exec_t,s0)
-/usr/sbin/grub2-probe	--	gen_context(system_u:object_r:bootloader_exec_t,s0)
+/usr/sbin/grub2?-bios-setup	--	gen_context(system_u:object_r:bootloader_exec_t,s0)
+/usr/sbin/grub2?-probe	--	gen_context(system_u:object_r:bootloader_exec_t,s0)
Signature · 1 line
1.8.5.5
#1 lore raw

PATCH 1/1 Generalize grub2 pattern

Quoted 11 lines · Luis Ressel

GRUB2 helper programs can be named either grub2-* or grub-*, depending on distro and configuration.

---
 policy/modules/admin/bootloader.fc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
policy/modules/admin/bootloader.fc +0 -0
index 2626ebf..8c7e6c2 100644

policy/modules/admin/bootloader.fc line 11

Quoted 7 lines
policy/modules/admin/bootloader.fc +2 -2
@@ -7,5 +7,5 @@
 /sbin/ybin.*		--	gen_context(system_u:object_r:bootloader_exec_t,s0)
 
 /usr/sbin/grub		--	gen_context(system_u:object_r:bootloader_exec_t,s0)
-/usr/sbin/grub2-bios-setup	--	gen_context(system_u:object_r:bootloader_exec_t,s0)
-/usr/sbin/grub2-probe	--	gen_context(system_u:object_r:bootloader_exec_t,s0)
+/usr/sbin/grub2?-bios-setup	--	gen_context(system_u:object_r:bootloader_exec_t,s0)
+/usr/sbin/grub2?-probe	--	gen_context(system_u:object_r:bootloader_exec_t,s0)

Merged.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com