Re: [PATCH] selftests/seccomp: fix build on older kernels

2019-08-30 Thread Tycho Andersen
On Fri, Aug 30, 2019 at 09:19:00AM -0600, shuah wrote: > On 8/29/19 6:45 PM, shuah wrote: > > On 8/29/19 11:06 AM, Kees Cook wrote: > > > On Mon, Aug 26, 2019 at 08:43:02AM -0600, Tycho Andersen wrote: > > > > The seccomp selftest goes to some length to build against older kernel > > > > headers, v

Re: [PATCH] selftests/seccomp: fix build on older kernels

2019-08-30 Thread shuah
On 8/29/19 6:45 PM, shuah wrote: On 8/29/19 11:06 AM, Kees Cook wrote: On Mon, Aug 26, 2019 at 08:43:02AM -0600, Tycho Andersen wrote: The seccomp selftest goes to some length to build against older kernel headers, viz. all the #ifdefs at the beginning of the file. 201766a20e30 ("ptrace: add PT

Re: [PATCH] selftests/seccomp: fix build on older kernels

2019-08-29 Thread shuah
On 8/29/19 11:06 AM, Kees Cook wrote: On Mon, Aug 26, 2019 at 08:43:02AM -0600, Tycho Andersen wrote: The seccomp selftest goes to some length to build against older kernel headers, viz. all the #ifdefs at the beginning of the file. 201766a20e30 ("ptrace: add PTRACE_GET_SYSCALL_INFO request") in

Re: [PATCH] selftests/seccomp: fix build on older kernels

2019-08-29 Thread Kees Cook
On Mon, Aug 26, 2019 at 08:43:02AM -0600, Tycho Andersen wrote: > The seccomp selftest goes to some length to build against older kernel > headers, viz. all the #ifdefs at the beginning of the file. 201766a20e30 > ("ptrace: add PTRACE_GET_SYSCALL_INFO request") introduces some additional > macros,

[PATCH] selftests/seccomp: fix build on older kernels

2019-08-26 Thread Tycho Andersen
The seccomp selftest goes to some length to build against older kernel headers, viz. all the #ifdefs at the beginning of the file. 201766a20e30 ("ptrace: add PTRACE_GET_SYSCALL_INFO request") introduces some additional macros, but doesn't do the #ifdef dance. Let's add that dance here to avoid: gc