Dmitry V. Levin
92e347b556
We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers.
22 lines
469 B
Bash
Executable File
22 lines
469 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Check how seccomp SECCOMP_SET_MODE_STRICT is decoded.
|
|
#
|
|
# Copyright (c) 2016-2018 The strace developers.
|
|
# All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
set -- "../$NAME"
|
|
"$@" > /dev/null || {
|
|
case $? in
|
|
77) skip_ "$* exited with code 77" ;;
|
|
137) framework_skip_ "$* killed by SIGKILL, fix your kernel" ;;
|
|
*) fail_ "$args failed" ;;
|
|
esac
|
|
}
|
|
run_strace -eseccomp "$@" > "$EXP"
|
|
match_diff "$LOG" "$EXP"
|