blob: 2eccc8932ae6f9229296d74c09503ebc2714432f [file] [log] [blame]
Thomas Gleixner96a388d2007-10-11 11:20:03 +02001#include <asm/unistd_32.h>
Al Virob9155432006-07-01 03:56:16 -04002
3unsigned ia32_dir_class[] = {
4#include <asm-generic/audit_dir_write.h>
5~0U
6};
7
8unsigned ia32_chattr_class[] = {
9#include <asm-generic/audit_change_attr.h>
10~0U
11};
Al Virodc104fb2006-08-31 19:05:56 -040012
13unsigned ia32_write_class[] = {
14#include <asm-generic/audit_write.h>
15~0U
16};
17
18unsigned ia32_read_class[] = {
19#include <asm-generic/audit_read.h>
20~0U
21};
Al Viro55669bf2006-08-31 19:26:40 -040022
Amy Griffis7f13da42007-03-29 18:00:37 -040023unsigned ia32_signal_class[] = {
24#include <asm-generic/audit_signal.h>
25~0U
26};
27
Al Viro55669bf2006-08-31 19:26:40 -040028int ia32_classify_syscall(unsigned syscall)
29{
Paolo Ciarrocchi73759312008-01-30 13:32:54 +010030 switch (syscall) {
Al Viro55669bf2006-08-31 19:26:40 -040031 case __NR_open:
32 return 2;
33 case __NR_openat:
34 return 3;
35 case __NR_socketcall:
36 return 4;
37 case __NR_execve:
David Drysdale27d6ec72014-12-12 16:57:33 -080038 case __NR_execveat:
Al Viro55669bf2006-08-31 19:26:40 -040039 return 5;
40 default:
41 return 1;
42 }
43}