]> git.ipfire.org Git - people/arne_f/kernel.git/blame - arch/sparc/kernel/compat_audit.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[people/arne_f/kernel.git] / arch / sparc / kernel / compat_audit.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
9acee190
SR
2#define __32bit_syscall_numbers__
3#include <asm/unistd.h>
a1ca187e 4#include "kernel.h"
f6bc0c1c 5
9ef595d8 6unsigned int sparc32_dir_class[] = {
f6bc0c1c
AV
7#include <asm-generic/audit_dir_write.h>
8~0U
9};
10
9ef595d8 11unsigned int sparc32_chattr_class[] = {
f6bc0c1c
AV
12#include <asm-generic/audit_change_attr.h>
13~0U
14};
15
9ef595d8 16unsigned int sparc32_write_class[] = {
f6bc0c1c
AV
17#include <asm-generic/audit_write.h>
18~0U
19};
20
9ef595d8 21unsigned int sparc32_read_class[] = {
f6bc0c1c
AV
22#include <asm-generic/audit_read.h>
23~0U
24};
25
9ef595d8 26unsigned int sparc32_signal_class[] = {
7f13da40
AG
27#include <asm-generic/audit_signal.h>
28~0U
29};
30
9ef595d8 31int sparc32_classify_syscall(unsigned int syscall)
f6bc0c1c
AV
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}