[PATCH v4 2/4] Introduce seccomp-assisted syscall filtering

Dmitry V. Levin ldv at altlinux.org
Sun Sep 1 19:08:30 UTC 2019


On Sun, Sep 01, 2019 at 02:14:42AM +0300, Dmitry V. Levin wrote:
> On Sat, Aug 31, 2019 at 09:56:55PM +0300, Dmitry V. Levin wrote:
> > On Thu, Aug 29, 2019 at 04:00:24PM +0200, Paul Chaignon wrote:
> > > From: Chen Jingpiao <chenjingpiao at gmail.com>
[...]
> This fails to compile on old operating systems like RHEL6
> with the following diagnostics:
> 
> filter_seccomp.c:16:27: error: linux/seccomp.h: No such file or directory

I don't think it worth trying to make seccomp-assisted syscall filtering
work on systems that do not provide linux/seccomp.h as they are not likely
to have a capable kernel, too.
I suppose conditionalizing on HAVE_LINUX_SECCOMP_H should be enough.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190901/72b582fe/attachment.bin>


More information about the Strace-devel mailing list