You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
397 B

#!/bin/sh
# Check success injection.
. "${srcdir=.}/scno_tampering.sh"
: ${suffix=}
[ -z "${name_override-}" ] || NAME="$name_override"
check_injection()
{
local syscall rval
syscall=chdir
rval="$1"; shift
run_strace -a12 -e$syscall -einject="$syscall:retval=$rval$suffix" "$@" \
../qual_inject-retval "$rval" > "$EXP"
match_diff "$LOG" "$EXP"
}
check_injection 0
check_injection 42