Get grub2-install to work properly

The grub2-install application runs a few grub2-* commands. Two of those,
grub2-bios-setup and grub2-probe, need read/write access to the (fixed) disks.

Mark those two applications as bootloader_exec_t (as is the case with the "grub"
legacy command in the past) allows the commands to continue.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
This commit is contained in:
Sven Vermeulen 2013-08-17 20:51:40 +02:00 committed by Chris PeBenito
parent 1ff40b5ec7
commit 6fb9a34679
1 changed files with 2 additions and 0 deletions

View File

@ -7,3 +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)