Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / sparc / kernel / compat_audit.c
blob10eeb4f15b206639d735738e5791df809c345e7d
1 // SPDX-License-Identifier: GPL-2.0
2 #define __32bit_syscall_numbers__
3 #include <asm/unistd.h>
4 #include "kernel.h"
6 unsigned int sparc32_dir_class[] = {
7 #include <asm-generic/audit_dir_write.h>
8 ~0U
9 };
11 unsigned int sparc32_chattr_class[] = {
12 #include <asm-generic/audit_change_attr.h>
13 ~0U
16 unsigned int sparc32_write_class[] = {
17 #include <asm-generic/audit_write.h>
18 ~0U
21 unsigned int sparc32_read_class[] = {
22 #include <asm-generic/audit_read.h>
23 ~0U
26 unsigned int sparc32_signal_class[] = {
27 #include <asm-generic/audit_signal.h>
28 ~0U
31 int sparc32_classify_syscall(unsigned int syscall)
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;