Stephen Rothwell | 9acee19 | 2008-11-26 00:51:32 -0800 | [diff] [blame] | 1 | #define __32bit_syscall_numbers__ |
| 2 | #include <asm/unistd.h> |
Al Viro | f6bc0c1 | 2006-09-12 02:59:45 -0400 | [diff] [blame] | 3 | |
| 4 | unsigned sparc32_dir_class[] = { |
| 5 | #include <asm-generic/audit_dir_write.h> |
| 6 | ~0U |
| 7 | }; |
| 8 | |
| 9 | unsigned sparc32_chattr_class[] = { |
| 10 | #include <asm-generic/audit_change_attr.h> |
| 11 | ~0U |
| 12 | }; |
| 13 | |
| 14 | unsigned sparc32_write_class[] = { |
| 15 | #include <asm-generic/audit_write.h> |
| 16 | ~0U |
| 17 | }; |
| 18 | |
| 19 | unsigned sparc32_read_class[] = { |
| 20 | #include <asm-generic/audit_read.h> |
| 21 | ~0U |
| 22 | }; |
| 23 | |
Amy Griffis | 7f13da4 | 2007-03-29 18:00:37 -0400 | [diff] [blame] | 24 | unsigned sparc32_signal_class[] = { |
| 25 | #include <asm-generic/audit_signal.h> |
| 26 | ~0U |
| 27 | }; |
| 28 | |
Al Viro | f6bc0c1 | 2006-09-12 02:59:45 -0400 | [diff] [blame] | 29 | int sparc32_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 | return 5; |
| 40 | default: |
| 41 | return 1; |
| 42 | } |
| 43 | } |