* Bug fixes
* Fixed -b execve when --seccomp-bpf option is specified.
* Fixed build on no-MMU architectures.
+ * Fixed build on antique systems that do not provide necessary definitions
+ of AUDIT_ARCH_* constants.
Noteworthy changes in release 5.3 (2019-09-25)
==============================================
#include <signal.h>
#include <sys/prctl.h>
#include <sys/wait.h>
-#include <linux/audit.h>
#include <linux/filter.h>
#include "filter_seccomp.h"
# include <linux/seccomp.h>
+/* PERSONALITY*_AUDIT_ARCH definitions depend on AUDIT_ARCH_* constants. */
+# ifdef PERSONALITY0_AUDIT_ARCH
+# include <linux/audit.h>
+# define XLAT_MACROS_ONLY
+# include "xlat/elf_em.h"
+# include "xlat/audit_arch.h"
+# undef XLAT_MACROS_ONLY
+# endif
+
# ifndef BPF_MAXINSNS
# define BPF_MAXINSNS 4096
# endif
#include "arch_defs.h"
#include "sysent.h"
#include "scno.h"
-#include <linux/audit.h>
+
+/* PERSONALITY*_AUDIT_ARCH definitions depend on AUDIT_ARCH_* constants. */
+#ifdef PERSONALITY0_AUDIT_ARCH
+# include <linux/audit.h>
+# define XLAT_MACROS_ONLY
+# include "xlat/elf_em.h"
+# include "xlat/audit_arch.h"
+# undef XLAT_MACROS_ONLY
+#endif
#ifdef __x86_64__
# ifndef __X32_SYSCALL_BIT