blob: 20c39c9d86a9aedb3c15739f6c5108987c0d47d3 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Helge Deller527973c2013-10-15 19:25:46 +02002#include <asm/unistd.h>
3
4unsigned int parisc32_dir_class[] = {
5#include <asm-generic/audit_dir_write.h>
6~0U
7};
8
9unsigned int parisc32_chattr_class[] = {
10#include <asm-generic/audit_change_attr.h>
11~0U
12};
13
14unsigned int parisc32_write_class[] = {
15#include <asm-generic/audit_write.h>
16~0U
17};
18
19unsigned int parisc32_read_class[] = {
20#include <asm-generic/audit_read.h>
21~0U
22};
23
24unsigned int parisc32_signal_class[] = {
25#include <asm-generic/audit_signal.h>
26~0U
27};
28
29int parisc32_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_execve:
37 return 5;
38 default:
39 return 1;
40 }
41}