Linux 5.7.6
[linux/fpc-iii.git] / arch / x86 / ia32 / audit.c
blob3d21eab7aaedf305683754d37faa46e6a263674c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <asm/unistd_32.h>
4 unsigned ia32_dir_class[] = {
5 #include <asm-generic/audit_dir_write.h>
6 ~0U
7 };
9 unsigned ia32_chattr_class[] = {
10 #include <asm-generic/audit_change_attr.h>
11 ~0U
14 unsigned ia32_write_class[] = {
15 #include <asm-generic/audit_write.h>
16 ~0U
19 unsigned ia32_read_class[] = {
20 #include <asm-generic/audit_read.h>
21 ~0U
24 unsigned ia32_signal_class[] = {
25 #include <asm-generic/audit_signal.h>
26 ~0U
29 int ia32_classify_syscall(unsigned syscall)
31 switch (syscall) {
32 case __NR_open:
33 return 2;
34 case __NR_openat:
35 return 3;
36 case __NR_socketcall:
37 return 4;
38 case __NR_execve:
39 case __NR_execveat:
40 return 5;
41 default:
42 return 1;