From 7f60027aa1e888c545d7887954fff9814c2bdcf7 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 15 Apr 2013 04:53:04 +0000 Subject: [PATCH] fix for bug 3496: disable SELinux on RHEL, check rc problem git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index f1264103c..dcab113cc 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -442,7 +442,9 @@ if ($::INITIALINSTALL || $::FORCE) if (-f "/etc/redhat-release") { my $rc=xCAT::Utils->isSELINUX(); - if ($rc != 0) + # rc 0 means SELinux is enabled + # rc 1 means SELinux is not enabled + if ($rc == 0) { xCAT::MsgUtils->message('W', "SELINUX is not disabled, disabling it now..."); # Disable selinux for running system