Linux 4.8-rc8
[linux/fpc-iii.git] / arch / sparc / kernel / compat_audit.c
blobe5611cd428f111c4858eee3a2a9877293f2627c5
1 #define __32bit_syscall_numbers__
2 #include <asm/unistd.h>
3 #include "kernel.h"
5 unsigned int sparc32_dir_class[] = {
6 #include <asm-generic/audit_dir_write.h>
7 ~0U
8 };
10 unsigned int sparc32_chattr_class[] = {
11 #include <asm-generic/audit_change_attr.h>
12 ~0U
15 unsigned int sparc32_write_class[] = {
16 #include <asm-generic/audit_write.h>
17 ~0U
20 unsigned int sparc32_read_class[] = {
21 #include <asm-generic/audit_read.h>
22 ~0U
25 unsigned int sparc32_signal_class[] = {
26 #include <asm-generic/audit_signal.h>
27 ~0U
30 int sparc32_classify_syscall(unsigned int syscall)
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;