#if SUPPORTED_PERSONALITIES > 1
# include "get_personality.h"
# include <linux/audit.h>
+# define XLAT_MACROS_ONLY
+# include "xlat/elf_em.h"
+# include "xlat/audit_arch.h"
+# undef XLAT_MACROS_ONLY
# include "arch_get_personality.c"
#endif
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef AUDIT_ARCH_ARM
-# define AUDIT_ARCH_ARM 0x40000028
-#endif
-
int
get_personality_from_syscall_info(const struct ptrace_syscall_info *sci)
{
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef AUDIT_ARCH_PPC
-# define AUDIT_ARCH_PPC 0x14
-#endif
-
int
get_personality_from_syscall_info(const struct ptrace_syscall_info *sci)
{
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef AUDIT_ARCH_RISCV32
-# define AUDIT_ARCH_RISCV32 0x400000f3
-#endif
-
int
get_personality_from_syscall_info(const struct ptrace_syscall_info *sci)
{
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef AUDIT_ARCH_S390
-# define AUDIT_ARCH_S390 0x16
-#endif
-
int
get_personality_from_syscall_info(const struct ptrace_syscall_info *sci)
{
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef AUDIT_ARCH_SPARC
-# define AUDIT_ARCH_SPARC 0x2
-#endif
-
int
get_personality_from_syscall_info(const struct ptrace_syscall_info *sci)
{
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef AUDIT_ARCH_TILEGX32
-# define AUDIT_ARCH_TILEGX32 0x400000bf
-#endif
-#ifndef AUDIT_ARCH_TILEPRO
-# define AUDIT_ARCH_TILEPRO 0x400000bc
-#endif
-
int
get_personality_from_syscall_info(const struct ptrace_syscall_info *sci)
{
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef AUDIT_ARCH_I386
-# define AUDIT_ARCH_I386 0x40000003
-#endif
-
int
get_personality_from_syscall_info(const struct ptrace_syscall_info *sci)
{