From: <ssm...@us...> - 2007-04-27 16:32:12
|
Revision: 2411 http://svn.sourceforge.net/selinux/?rev=2411&view=rev Author: ssmalley Date: 2007-04-27 09:32:08 -0700 (Fri, 27 Apr 2007) Log Message: ----------- Author: Dax Kelson Email: da...@gu... Subject: libselinux: helpful message when /selinux won't mount Date: Thu, 26 Apr 2007 14:07:47 -0600 Last night a co-worker was trying to do a Phyical-2-Virtual (P2V) migration of a RHEL5 box. During bootup, the following not-so-helpful message was seen: "Unable to load SELinux Policy. Machine is in enforcing mode. Halting now." I ran it down to the /selinux mount point not existing on the root filesystem, but the troubleshooting was more difficult than it should have been (it didn't help that it was a 3am). Please consider the following trivial patch for inclusion into libselinux so that others may have an easier time if they happen into the same situation. Signed-off-by: Dax Kelson <da...@gu...> Acked-by: Stephen Smalley <sd...@ty...> =================================================================== Modified Paths: -------------- trunk/libselinux/src/load_policy.c Modified: trunk/libselinux/src/load_policy.c =================================================================== --- trunk/libselinux/src/load_policy.c 2007-04-27 15:43:48 UTC (rev 2410) +++ trunk/libselinux/src/load_policy.c 2007-04-27 16:32:08 UTC (rev 2411) @@ -226,6 +226,7 @@ */ *enforce = 0; } + printf("Mount failed for selinuxfs on /selinux\n"); goto noload; } set_selinuxmnt(SELINUXMNT); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |