[PATCH] do not umount selinuxfs and sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When the selinux module is enabled, after loading the SELinux
policy, do not umount selinuxfs and sysfs.

This causes the failure of subsequent calls to the function
is_selinux_enabled() in libselinux which in turn causes a
boot failure on systems using sysvinit because the init daemon
tries load the SELinux policy again.

Signed-off-by: Guido Trentalancia <guido@xxxxxxxxxxxxxxxx>
---
 modules.d/98selinux/selinux-loadpolicy.sh |    2 --
 1 file changed, 2 deletions(-)

--- dracut-044-orig/modules.d/98selinux/selinux-loadpolicy.sh	2017-01-02 21:49:03.760547083 +0100
+++ dracut-044/modules.d/98selinux/selinux-loadpolicy.sh	2017-01-02 22:52:36.485433239 +0100
@@ -34,8 +34,6 @@ rd_load_policy()
             ret=$?
             info $out
         fi
-        umount $NEWROOT/sys/fs/selinux
-        umount $NEWROOT/sys
 
         if [ "$SELINUX" = "disabled" ]; then
             return 0;
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux