mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-26 08:55:24 +00:00 
			
		
		
		
	user Utils->SELINUX to check for selinux enabled
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10336 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -293,18 +293,14 @@ sub process_request { | ||||
|         xCAT::SvrUtils::sendmsg([0,"Warning:The domain is not defined in a search path or domain path for AIX (in /etc/resolv.conf. Add \"search $domain\" to /etc/resolv.conf and run makedns again."], $callback); | ||||
|    } | ||||
|    # check for selinux disabled | ||||
|    my $selinux="/etc/selinux/config"; | ||||
|    if (-e ($selinux)) { | ||||
|     # check if selinux is disabled  | ||||
|     my $disabled="\"SELINUX=disabled\""; | ||||
|     my $cmd="fgrep $disabled $selinux"; | ||||
|     my @output=xCAT::Utils->runcmd($cmd, -1); | ||||
|     if ($::RUNCMD_RC != 0) | ||||
|     my $rc=xCAT::Utils->isSELINUX(); | ||||
|     if ($rc == 0) | ||||
|     { | ||||
|         xCAT::SvrUtils::sendmsg([0,"Warning:SELINUX is not disabled. The makedns command will not be able to generate a complete DNS setup. Disable SELINUX and run the command again."], $callback); | ||||
|  | ||||
|     }  | ||||
|    }  | ||||
|     } | ||||
|  | ||||
|       | ||||
|     my $networkstab = xCAT::Table->new('networks',-create=>0); | ||||
|     unless ($networkstab) { xCAT::SvrUtils::sendmsg([1,'Unable to enumerate networks, try to run makenetworks'], $callback); } | ||||
|     my @networks = $networkstab->getAllAttribs('net','mask','ddnsdomain'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user