1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/audit_arch.h>
3 #include <asm/unistd.h>
4 
5 unsigned int parisc32_dir_class[] = {
6 #include <asm-generic/audit_dir_write.h>
7 ~0U
8 };
9 
10 unsigned int parisc32_chattr_class[] = {
11 #include <asm-generic/audit_change_attr.h>
12 ~0U
13 };
14 
15 unsigned int parisc32_write_class[] = {
16 #include <asm-generic/audit_write.h>
17 ~0U
18 };
19 
20 unsigned int parisc32_read_class[] = {
21 #include <asm-generic/audit_read.h>
22 ~0U
23 };
24 
25 unsigned int parisc32_signal_class[] = {
26 #include <asm-generic/audit_signal.h>
27 ~0U
28 };
29 
30 int parisc32_classify_syscall(unsigned syscall)
31 {
32 	switch (syscall) {
33 	case __NR_open:
34 		return AUDITSC_OPEN;
35 	case __NR_openat:
36 		return AUDITSC_OPENAT;
37 	case __NR_execve:
38 		return AUDITSC_EXECVE;
39 	case __NR_openat2:
40 		return AUDITSC_OPENAT2;
41 	default:
42 		return AUDITSC_COMPAT;
43 	}
44 }
45