• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh -efu
2
3. "${srcdir=.}/scno_tampering.sh"
4
5: ${IOCTL_INJECT_START=256}
6: ${IOCTL_INJECT_RETVAL=8}
7
8run_prog
9run_strace -a16 -e trace=ioctl \
10	-e inject=ioctl:retval="${IOCTL_INJECT_RETVAL}":when="${IOCTL_INJECT_START}+" \
11	../ioctl_evdev-success "${IOCTL_INJECT_START}" "${IOCTL_INJECT_RETVAL}"> "$EXP"
12grep -v '^ioctl([012][,<]' < "$LOG" > "$OUT"
13match_diff "$OUT" "$EXP"
14