Re: [PATCH] selftests/seccomp: Handle namespace failures gracefully

2019-04-12 Thread Tycho Andersen
On Fri, Apr 12, 2019 at 11:07:11AM -0600, shuah wrote: > On 4/12/19 9:25 AM, Tycho Andersen wrote: > > On Thu, Apr 11, 2019 at 04:56:31PM -0700, Kees Cook wrote: > > > When running without USERNS or PIDNS the seccomp test would hang since > > > it was waiting forever for the child to trigger the us

Re: [PATCH] selftests/seccomp: Handle namespace failures gracefully

2019-04-12 Thread shuah
On 4/12/19 9:25 AM, Tycho Andersen wrote: On Thu, Apr 11, 2019 at 04:56:31PM -0700, Kees Cook wrote: 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

Re: [PATCH] selftests/seccomp: Handle namespace failures gracefully

2019-04-12 Thread Tycho Andersen
On Thu, Apr 11, 2019 at 04:56:31PM -0700, Kees Cook wrote: > 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.

[PATCH] selftests/seccomp: Handle namespace failures gracefully

2019-04-11 Thread Kees Cook
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 e