Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Al Viro | c080379 | 2006-08-31 19:02:42 -0400 | [diff] [blame] | 2 | #undef __s390x__ |
| 3 | #include <asm/unistd.h> |
Heiko Carstens | 364c855 | 2007-10-12 16:11:35 +0200 | [diff] [blame] | 4 | #include "audit.h" |
Al Viro | c080379 | 2006-08-31 19:02:42 -0400 | [diff] [blame] | 5 | |
| 6 | unsigned s390_dir_class[] = { |
| 7 | #include <asm-generic/audit_dir_write.h> |
| 8 | ~0U |
| 9 | }; |
| 10 | |
| 11 | unsigned s390_chattr_class[] = { |
| 12 | #include <asm-generic/audit_change_attr.h> |
| 13 | ~0U |
| 14 | }; |
Al Viro | dc104fb | 2006-08-31 19:05:56 -0400 | [diff] [blame] | 15 | |
| 16 | unsigned s390_write_class[] = { |
| 17 | #include <asm-generic/audit_write.h> |
| 18 | ~0U |
| 19 | }; |
| 20 | |
| 21 | unsigned s390_read_class[] = { |
| 22 | #include <asm-generic/audit_read.h> |
| 23 | ~0U |
| 24 | }; |
Al Viro | 55669bf | 2006-08-31 19:26:40 -0400 | [diff] [blame] | 25 | |
Amy Griffis | 7f13da4 | 2007-03-29 18:00:37 -0400 | [diff] [blame] | 26 | unsigned s390_signal_class[] = { |
| 27 | #include <asm-generic/audit_signal.h> |
| 28 | ~0U |
| 29 | }; |
| 30 | |
Al Viro | 55669bf | 2006-08-31 19:26:40 -0400 | [diff] [blame] | 31 | int s390_classify_syscall(unsigned syscall) |
| 32 | { |
| 33 | switch(syscall) { |
| 34 | case __NR_open: |
| 35 | return 2; |
| 36 | case __NR_openat: |
| 37 | return 3; |
| 38 | case __NR_socketcall: |
| 39 | return 4; |
| 40 | case __NR_execve: |
| 41 | return 5; |
| 42 | default: |
| 43 | return 1; |
| 44 | } |
| 45 | } |