From f93ca55b2478a6143168d487ea1477e1d9b069ab Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 16 Oct 2017 23:01:44 -0400 Subject: [PATCH] Fix erroneous 'noping' in various circumstances (#4102) nmap's raw IP facility is prone to mistakes in various environments. Disable the raw IP handling by telling nmap to run as if it didn't have privilege Note this was already done back in: commit fb02c18853dd2004ed936c77afabd310d7f115dd Author: jjohnson2 Date: Fri Mar 20 10:58:26 2015 -0400 But it was broken since then.. --- xCAT-client/bin/pping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index 0b47fe663..4bc3af11b 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -199,7 +199,7 @@ sub nmap_pping { @nmap_options = xCAT::TableUtils->get_site_attribute("nmapoptions"); $more_options = $nmap_options[0]; } - open(FPING, "nmap -PE --system-dns --send-ip -sP $more_options " . join(' ', @$nodes) . " 2> /dev/null|") or die("Cannot open nmap pipe: $!"); + open(FPING, "nmap -PE --system-dns --unprivileged --send-ip -sP $more_options " . join(' ', @$nodes) . " 2> /dev/null|") or die("Cannot open nmap pipe: $!"); my $node; while () { if (/Host (.*) \(.*\) appears to be up/) {