diff options
Diffstat (limited to 'arch/s390/kernel/audit.c')
-rw-r--r-- | arch/s390/kernel/audit.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/s390/kernel/audit.c b/arch/s390/kernel/audit.c index 0741d9193390..d1c76fe10f29 100644 --- a/arch/s390/kernel/audit.c +++ b/arch/s390/kernel/audit.c | |||
@@ -23,6 +23,20 @@ static unsigned chattr_class[] = { | |||
23 | ~0U | 23 | ~0U |
24 | }; | 24 | }; |
25 | 25 | ||
26 | static unsigned signal_class[] = { | ||
27 | #include <asm-generic/audit_signal.h> | ||
28 | ~0U | ||
29 | }; | ||
30 | |||
31 | int audit_classify_arch(int arch) | ||
32 | { | ||
33 | #ifdef CONFIG_COMPAT | ||
34 | if (arch == AUDIT_ARCH_S390) | ||
35 | return 1; | ||
36 | #endif | ||
37 | return 0; | ||
38 | } | ||
39 | |||
26 | int audit_classify_syscall(int abi, unsigned syscall) | 40 | int audit_classify_syscall(int abi, unsigned syscall) |
27 | { | 41 | { |
28 | #ifdef CONFIG_COMPAT | 42 | #ifdef CONFIG_COMPAT |
@@ -51,15 +65,18 @@ static int __init audit_classes_init(void) | |||
51 | extern __u32 s390_write_class[]; | 65 | extern __u32 s390_write_class[]; |
52 | extern __u32 s390_read_class[]; | 66 | extern __u32 s390_read_class[]; |
53 | extern __u32 s390_chattr_class[]; | 67 | extern __u32 s390_chattr_class[]; |
68 | extern __u32 s390_signal_class[]; | ||
54 | audit_register_class(AUDIT_CLASS_WRITE_32, s390_write_class); | 69 | audit_register_class(AUDIT_CLASS_WRITE_32, s390_write_class); |
55 | audit_register_class(AUDIT_CLASS_READ_32, s390_read_class); | 70 | audit_register_class(AUDIT_CLASS_READ_32, s390_read_class); |
56 | audit_register_class(AUDIT_CLASS_DIR_WRITE_32, s390_dir_class); | 71 | audit_register_class(AUDIT_CLASS_DIR_WRITE_32, s390_dir_class); |
57 | audit_register_class(AUDIT_CLASS_CHATTR_32, s390_chattr_class); | 72 | audit_register_class(AUDIT_CLASS_CHATTR_32, s390_chattr_class); |
73 | audit_register_class(AUDIT_CLASS_SIGNAL_32, s390_signal_class); | ||
58 | #endif | 74 | #endif |
59 | audit_register_class(AUDIT_CLASS_WRITE, write_class); | 75 | audit_register_class(AUDIT_CLASS_WRITE, write_class); |
60 | audit_register_class(AUDIT_CLASS_READ, read_class); | 76 | audit_register_class(AUDIT_CLASS_READ, read_class); |
61 | audit_register_class(AUDIT_CLASS_DIR_WRITE, dir_class); | 77 | audit_register_class(AUDIT_CLASS_DIR_WRITE, dir_class); |
62 | audit_register_class(AUDIT_CLASS_CHATTR, chattr_class); | 78 | audit_register_class(AUDIT_CLASS_CHATTR, chattr_class); |
79 | audit_register_class(AUDIT_CLASS_SIGNAL, signal_class); | ||
63 | return 0; | 80 | return 0; |
64 | } | 81 | } |
65 | 82 | ||