1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* audit_arch.h -- Arch layer specific support for audit 3 * 4 * Copyright 2021 Red Hat Inc., Durham, North Carolina. 5 * All Rights Reserved. 6 * 7 * Author: Richard Guy Briggs <rgb@redhat.com> 8 */ 9 #ifndef _LINUX_AUDIT_ARCH_H_ 10 #define _LINUX_AUDIT_ARCH_H_ 11 12 enum auditsc_class_t { 13 AUDITSC_NATIVE = 0, 14 AUDITSC_COMPAT, 15 AUDITSC_OPEN, 16 AUDITSC_OPENAT, 17 AUDITSC_SOCKETCALL, 18 AUDITSC_EXECVE, 19 AUDITSC_OPENAT2, 20 21 AUDITSC_NVALS /* count */ 22 }; 23 24 extern int audit_classify_compat_syscall(int abi, unsigned syscall); 25 26 /* only for compat system calls */ 27 extern unsigned compat_write_class[]; 28 extern unsigned compat_read_class[]; 29 extern unsigned compat_dir_class[]; 30 extern unsigned compat_chattr_class[]; 31 extern unsigned compat_signal_class[]; 32 33 #endif 34