/usr/lib/condor/libexec/condor_glexec_update_proxy is in htcondor 8.6.8~dfsg.1-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #!/bin/sh
if [ $# != 4 ]
then
echo "usage: $0 <glexec> <new_proxy> <proxy> <sandbox>" >&2
exit 1
fi
GLEXEC="$1"
NEW_PROXY="$2"
PROXY="$3"
SANDBOX="$4"
# NOTE: we do not handle glexec retries here because failure of this
# operation is handled by the shadow.
if [ $GLEXEC = - ]
then
mv -f "$NEW_PROXY" "$SANDBOX/$PROXY"
if [ $? != 0 ]
then
rm -f "$NEW_PROXY"
exit 1
fi
exit 0
fi
SH=`readlink -f /bin/sh`
GLEXEC_CLIENT_CERT="$SANDBOX.condor/$PROXY"
export GLEXEC_CLIENT_CERT
# prevent glexec from creating a proxy in /tmp that is not cleaned up
GLEXEC_TARGET_PROXY=/dev/null
export GLEXEC_TARGET_PROXY
cat "$NEW_PROXY" | \
"$GLEXEC" "$SH" -c "umask 077 &&
cat > \"$NEW_PROXY.copy\" &&
mv -f \"$NEW_PROXY.copy\" \"$SANDBOX/$PROXY\"" &&
mv -f "$NEW_PROXY" "$SANDBOX.condor/$PROXY"
if [ $? != 0 ]
then
rm -f "$NEW_PROXY"
exit 1
fi
|