Merge branch 'fix/rt5645' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[deliverable/linux.git] / arch / s390 / kernel / compat_audit.c
CommitLineData
c0803799
AV
1#undef __s390x__
2#include <asm/unistd.h>
364c8558 3#include "audit.h"
c0803799
AV
4
5unsigned s390_dir_class[] = {
6#include <asm-generic/audit_dir_write.h>
7~0U
8};
9
10unsigned s390_chattr_class[] = {
11#include <asm-generic/audit_change_attr.h>
12~0U
13};
dc104fb3
AV
14
15unsigned s390_write_class[] = {
16#include <asm-generic/audit_write.h>
17~0U
18};
19
20unsigned s390_read_class[] = {
21#include <asm-generic/audit_read.h>
22~0U
23};
55669bfa 24
7f13da40
AG
25unsigned s390_signal_class[] = {
26#include <asm-generic/audit_signal.h>
27~0U
28};
29
55669bfa
AV
30int s390_classify_syscall(unsigned syscall)
31{
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;
43 }
44}
This page took 0.591639 seconds and 5 git commands to generate.