/usr/bin/cr_run is in blcr-util 0.8.5-2.3+b1.
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #!/bin/sh
# Default preload is the "run" library
_libname=libcr_run
# Process args
while [ $# -ne 0 ]; do
case "$1" in
--help|-\?)
echo "$0: program [args...]"
echo 'Options:'
echo ' -?, --help print this help message.'
echo ' --version print version information.'
echo ' -- ends options procesing.'
echo ' --omit exclude process(es) from checkpoints.'
echo ' --run negates --omit (this is the default).'
exit 0
;;
--version)
echo `basename $0`": version 0.8.5"
exit 0
;;
--)
shift
break
;;
--omit)
_libname=libcr_omit
shift
;;
--run)
_libname=libcr_run
shift
;;
*)
break
;;
esac
done
_new=${_libname}.so.0
case "$LD_PRELOAD" in
''|:) LD_PRELOAD="${_new}" ;;
*) # Append LD_PRELOAD to _new, filtering out any existing libcr_{omit,run} (and empty elements)
saveIFS="$IFS"
IFS=:
for x in $LD_PRELOAD; do
if test -n "$x"; then
case "$(basename $x)" in
libcr_omit.so*) ;;
libcr_run.so*) ;;
*) _new="${_new}:${x}";;
esac
fi
done
IFS="$saveIFS"
;;
esac
LD_PRELOAD="${_new}"
export LD_PRELOAD
exec "$@"
|