Commit 8630f549 authored by Brian Paul Bockelman's avatar Brian Paul Bockelman
Browse files

Only check that UID has changed. Otherwise, we can run into secondary GID...

Only check that UID has changed.  Otherwise, we can run into secondary GID ordering and SELinux context issues.
parent e8c33c7b
......@@ -29,6 +29,7 @@ now="`date -u +'%F %T'` UTC"
currdir=$PWD
host=`uname -n`
pilotid=`/usr/bin/id`
pilotidu=`/usr/bin/id -u`
add2buffer "Ran at $now on host $host as user:"
add2buffer "$pilotid"
......@@ -153,7 +154,7 @@ export GLEXEC_TARGET_PROXY="/tmp/x509up_u`id -u`.glexec.${RANDOM}"
add2buffer "GLEXEC_TARGET_PROXY: $GLEXEC_TARGET_PROXY"
# run a bare glexec test and verify that the uid/gid is changed
payloadid=`$glexec /usr/bin/id`
payloadid=`$glexec /usr/bin/id -u`
err=$?
if [ $err -ne 0 ]; then
do_print "Error: error $err executing $glexec getting payload uid/gid"
......@@ -165,7 +166,7 @@ if [ -z "$payloadid" ]; then
exit $NAG_CRITICAL
fi
if [ "X$payloadid" == "X$pilotid" ]; then
if [ "X$payloadid" == "X$pilotidu" ]; then
add2buffer "Warning: Same /usr/bin/id for payload and pilot"
exitcode=$NAG_WARNING
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment