diff options
author | Kees Cook <[email protected]> | 2019-04-11 16:56:31 -0700 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2019-04-16 17:04:08 -0600 |
commit | 9dd3fcb0ab73cb1e00b8562ef027a38521aaff87 (patch) | |
tree | 6f1a971fc65ad50b3759c272dce909e834b3aeb4 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e14d314c7a489f060d6d691866fef5f131281718 (diff) |
selftests/seccomp: Handle namespace failures gracefully
When running without USERNS or PIDNS the seccomp test would hang since
it was waiting forever for the child to trigger the user notification
since it seems the glibc() abort handler makes a call to getpid(),
which would trap again. This changes the getpid filter to getppid, and
makes sure ASSERTs execute to stop from spawning the listener.
Reported-by: Shuah Khan <[email protected]>
Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")
Cc: [email protected] # > 5.0
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Tycho Andersen <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions