audit.c (1c30e3af8a79260cdba833a719209b01e6b92300) | audit.c (b7472e1764bfc0fe3d6578cb281e81c812ca5886) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/init.h> 3#include <linux/types.h> 4#include <linux/audit.h> 5#include <asm/unistd.h> 6 7static unsigned dir_class[] = { 8#include <asm-generic/audit_dir_write.h> --- 33 unchanged lines hidden (view full) --- 42{ 43#ifdef CONFIG_PPC64 44 extern int ppc32_classify_syscall(unsigned); 45 if (abi == AUDIT_ARCH_PPC) 46 return ppc32_classify_syscall(syscall); 47#endif 48 switch(syscall) { 49 case __NR_open: | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/init.h> 3#include <linux/types.h> 4#include <linux/audit.h> 5#include <asm/unistd.h> 6 7static unsigned dir_class[] = { 8#include <asm-generic/audit_dir_write.h> --- 33 unchanged lines hidden (view full) --- 42{ 43#ifdef CONFIG_PPC64 44 extern int ppc32_classify_syscall(unsigned); 45 if (abi == AUDIT_ARCH_PPC) 46 return ppc32_classify_syscall(syscall); 47#endif 48 switch(syscall) { 49 case __NR_open: |
50 return AUDITSC_OPEN; | 50 return 2; |
51 case __NR_openat: | 51 case __NR_openat: |
52 return AUDITSC_OPENAT; | 52 return 3; |
53 case __NR_socketcall: | 53 case __NR_socketcall: |
54 return AUDITSC_SOCKETCALL; | 54 return 4; |
55 case __NR_execve: | 55 case __NR_execve: |
56 return AUDITSC_EXECVE; 57 case __NR_openat2: 58 return AUDITSC_OPENAT2; | 56 return 5; |
59 default: | 57 default: |
60 return AUDITSC_NATIVE; | 58 return 0; |
61 } 62} 63 64static int __init audit_classes_init(void) 65{ 66#ifdef CONFIG_PPC64 67 extern __u32 ppc32_dir_class[]; 68 extern __u32 ppc32_write_class[]; --- 18 unchanged lines hidden --- | 59 } 60} 61 62static int __init audit_classes_init(void) 63{ 64#ifdef CONFIG_PPC64 65 extern __u32 ppc32_dir_class[]; 66 extern __u32 ppc32_write_class[]; --- 18 unchanged lines hidden --- |