Loading...
1// SPDX-License-Identifier: GPL-2.0
2#include <asm/unistd_32.h>
3
4unsigned ia32_dir_class[] = {
5#include <asm-generic/audit_dir_write.h>
6~0U
7};
8
9unsigned ia32_chattr_class[] = {
10#include <asm-generic/audit_change_attr.h>
11~0U
12};
13
14unsigned ia32_write_class[] = {
15#include <asm-generic/audit_write.h>
16~0U
17};
18
19unsigned ia32_read_class[] = {
20#include <asm-generic/audit_read.h>
21~0U
22};
23
24unsigned ia32_signal_class[] = {
25#include <asm-generic/audit_signal.h>
26~0U
27};
28
29int ia32_classify_syscall(unsigned syscall)
30{
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;
43 }
44}
1// SPDX-License-Identifier: GPL-2.0
2#include <asm/unistd_32.h>
3#include <asm/audit.h>
4
5unsigned ia32_dir_class[] = {
6#include <asm-generic/audit_dir_write.h>
7~0U
8};
9
10unsigned ia32_chattr_class[] = {
11#include <asm-generic/audit_change_attr.h>
12~0U
13};
14
15unsigned ia32_write_class[] = {
16#include <asm-generic/audit_write.h>
17~0U
18};
19
20unsigned ia32_read_class[] = {
21#include <asm-generic/audit_read.h>
22~0U
23};
24
25unsigned ia32_signal_class[] = {
26#include <asm-generic/audit_signal.h>
27~0U
28};
29
30int ia32_classify_syscall(unsigned syscall)
31{
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;
44 }
45}