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