/usr/src/blcr-0.8.5/tests/reloc_all.sh is in blcr-dkms 0.8.5-2.1.
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 | #!/bin/sh
set -e
. ${cr_testsdir:-`dirname $0`}/shellinit
context=`pwd`/Context1
#
TMPDIR=`cd ${TMPDIR:-/tmp} && $cr_pwd`
MY_TMPDIR1=`mktemp -d ${TMPDIR}/blcr_reloc.XXXXXX`
MY_TMPDIR2=`mktemp -d ${TMPDIR}/blcr_reloc.XXXXXX`
trap "\rm -rf ${MY_TMPDIR1} ${MY_TMPDIR2} $context 2>/dev/null" 0
cp -f ${cr_testsdir}/reloc_aux ${MY_TMPDIR1}/reloc_exe
${cr_run} ${MY_TMPDIR1}/reloc_exe ${MY_TMPDIR1} "$context --clobber"
# Move the entire directory contents
mv -f ${MY_TMPDIR1}/reloc_* ${MY_TMPDIR2}/
\rm -rf ${MY_TMPDIR1}
${cr_restart} --relocate /foo=/bar --relocate ${MY_TMPDIR1}=${MY_TMPDIR2} $context
|