]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/audit-arch.h
2 * SPDX-License-Identifier: LGPL-2.1-or-later
4 * Copyright (C) 2023 Thomas Weißschuh <thomas@t-8ch.de>
6 * This file may be distributed under the terms of the
7 * GNU Lesser General Public License.
9 #ifndef UTIL_LINUX_AUDIT_ARCH_H
10 #define UTIL_LINUX_AUDIT_ARCH_H
13 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_X86_64
15 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_I386
17 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARM
19 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_AARCH64
21 # if __riscv_xlen == 32
22 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV32
23 # elif __riscv_xlen == 64
24 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV64
27 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_S390X
29 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_S390
31 # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
32 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC64
34 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC64LE
37 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC
39 # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
40 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPS
42 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPSEL
45 # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
46 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2BE
48 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2
51 # if __SIZEOF_POINTER__ == 4
52 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SPARC
54 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SPARC64
57 # if __SIZEOF_POINTER__ == 4
58 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32
60 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64
63 # if __SIZEOF_POINTER__ == 4
64 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC
66 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC64
69 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ALPHA
71 # error Unknown target architecture
74 #endif /* UTIL_LINUX_AUDIT_ARCH_H */