]> granicus.if.org Git - strace/commit
filter_seccomp: fix build on antique systems
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Oct 2019 09:24:06 +0000 (09:24 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Oct 2019 09:24:06 +0000 (09:24 +0000)
commit1ce3ceb442a9a94ca4381436d8786dbd14dff8da
treefe095274a2fc467c76d32fe0afb9c4a20cde4f80
parent626e8d694dd3dfaad1a2ab2219e4a703dc8045a3
filter_seccomp: fix build on antique systems

Fixed build on systems that do not provide necessary definitions
of AUDIT_ARCH_* constants.

* filter_seccomp.c [PERSONALITY0_AUDIT_ARCH]: Include
"xlat/elf_em.h" and "xlat/audit_arch.h" under XLAT_MACROS_ONLY.
* tests/filter_seccomp-flag.c: Likewise.
* NEWS: Mention this fix.

Fixes: v5.3~7 "Introduce seccomp-assisted syscall filtering"
NEWS
filter_seccomp.c
tests/filter_seccomp-flag.c