blob: 50d7a3ef1104ea8c8e8f1523e80c8516680cc634 [file] [log] [blame]
Samantha Millerb7e74212018-08-23 10:08:59 -06001#!/bin/bash
2
3# Find lines with si_code=SYS_SECCOMP, implying a seccomp filter failure.
4# Parse the line to find the si_syscall paratemeter than extract the
5# system call itself.
6strace -ff "$@" 2>&1 | grep si_code=SYS_SECCOMP | awk -F ',' '{print $4}' \
7 | cut -c18-