1#!/bin/sh 2 3# Check success injection. 4 5. "${srcdir=.}/scno_tampering.sh" 6 7: ${suffix=} 8[ -z "${name_override-}" ] || NAME="$name_override" 9 10check_injection() 11{ 12 local syscall rval 13 14 syscall=chdir 15 rval="$1"; shift 16 17 run_strace -a12 -e$syscall -einject="$syscall:retval=$rval$suffix" "$@" \ 18 ../qual_inject-retval "$rval" > "$EXP" 19 match_diff "$LOG" "$EXP" 20} 21 22check_injection 0 23check_injection 42 24