Version:  2.0.40 2.2.26 2.4.37 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10

Linux/lib/compat_audit.c

  1 #include <linux/init.h>
  2 #include <linux/types.h>
  3 #include <asm/unistd32.h>
  4 
  5 unsigned compat_dir_class[] = {
  6 #include <asm-generic/audit_dir_write.h>
  7 ~0U
  8 };
  9 
 10 unsigned compat_read_class[] = {
 11 #include <asm-generic/audit_read.h>
 12 ~0U
 13 };
 14 
 15 unsigned compat_write_class[] = {
 16 #include <asm-generic/audit_write.h>
 17 ~0U
 18 };
 19 
 20 unsigned compat_chattr_class[] = {
 21 #include <asm-generic/audit_change_attr.h>
 22 ~0U
 23 };
 24 
 25 unsigned compat_signal_class[] = {
 26 #include <asm-generic/audit_signal.h>
 27 ~0U
 28 };
 29 
 30 int audit_classify_compat_syscall(int abi, unsigned syscall)
 31 {
 32         switch (syscall) {
 33 #ifdef __NR_open
 34         case __NR_open:
 35                 return 2;
 36 #endif
 37 #ifdef __NR_openat
 38         case __NR_openat:
 39                 return 3;
 40 #endif
 41 #ifdef __NR_socketcall
 42         case __NR_socketcall:
 43                 return 4;
 44 #endif
 45         case __NR_execve:
 46                 return 5;
 47         default:
 48                 return 1;
 49         }
 50 }
 51 

This page was automatically generated by LXR 0.3.1 (source).  •  Linux is a registered trademark of Linus Torvalds  •  Contact us