| Al Viro | c080379 | 2006-08-31 19:02:42 -0400 | [diff] [blame] | 1 | #undef __s390x__ | 
|  | 2 | #include <asm/unistd.h> | 
| Heiko Carstens | 364c855 | 2007-10-12 16:11:35 +0200 | [diff] [blame] | 3 | #include "audit.h" | 
| Al Viro | c080379 | 2006-08-31 19:02:42 -0400 | [diff] [blame] | 4 |  | 
|  | 5 | unsigned s390_dir_class[] = { | 
|  | 6 | #include <asm-generic/audit_dir_write.h> | 
|  | 7 | ~0U | 
|  | 8 | }; | 
|  | 9 |  | 
|  | 10 | unsigned s390_chattr_class[] = { | 
|  | 11 | #include <asm-generic/audit_change_attr.h> | 
|  | 12 | ~0U | 
|  | 13 | }; | 
| Al Viro | dc104fb | 2006-08-31 19:05:56 -0400 | [diff] [blame] | 14 |  | 
|  | 15 | unsigned s390_write_class[] = { | 
|  | 16 | #include <asm-generic/audit_write.h> | 
|  | 17 | ~0U | 
|  | 18 | }; | 
|  | 19 |  | 
|  | 20 | unsigned s390_read_class[] = { | 
|  | 21 | #include <asm-generic/audit_read.h> | 
|  | 22 | ~0U | 
|  | 23 | }; | 
| Al Viro | 55669bf | 2006-08-31 19:26:40 -0400 | [diff] [blame] | 24 |  | 
| Amy Griffis | 7f13da4 | 2007-03-29 18:00:37 -0400 | [diff] [blame] | 25 | unsigned s390_signal_class[] = { | 
|  | 26 | #include <asm-generic/audit_signal.h> | 
|  | 27 | ~0U | 
|  | 28 | }; | 
|  | 29 |  | 
| Al Viro | 55669bf | 2006-08-31 19:26:40 -0400 | [diff] [blame] | 30 | int s390_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 | return 5; | 
|  | 41 | default: | 
|  | 42 | return 1; | 
|  | 43 | } | 
|  | 44 | } |