]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'audit/master'
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 May 2014 04:58:21 +0000 (14:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 May 2014 04:58:21 +0000 (14:58 +1000)
Conflicts:
arch/mips/include/asm/syscall.h
arch/mips/kernel/ptrace.c
arch/x86/Kconfig
kernel/audit.c

1  2 
arch/mips/include/asm/syscall.h
arch/mips/kernel/ptrace.c
arch/s390/kernel/ptrace.c
arch/um/kernel/ptrace.c
arch/x86/kernel/ptrace.c
include/uapi/linux/audit.h

index 17960fe7a8ce4ef21b7a94cca10c7b5af61cec17,eac2df28bf732ac5e18d4a6b1a6de383e8ef9146..93b3b86c293c854538fb33f5b7b45e162e7b8471
@@@ -129,12 -105,9 +129,12 @@@ extern const unsigned long sysn32_call_
  
  static inline int syscall_get_arch(void)
  {
-       int arch = EM_MIPS;
+       int arch = AUDIT_ARCH_MIPS;
  #ifdef CONFIG_64BIT
 -      arch |=  __AUDIT_ARCH_64BIT;
 +      if (!test_thread_flag(TIF_32BIT_REGS))
 +              arch |= __AUDIT_ARCH_64BIT;
 +      if (test_thread_flag(TIF_32BIT_ADDR))
 +              arch |= __AUDIT_ARCH_CONVENTION_MIPS64_N32;
  #endif
  #if defined(__LITTLE_ENDIAN)
        arch |=  __AUDIT_ARCH_LE;
index 71f85f4270341252d046db277aecfd5d3d0ae13d,8b393bcf7919a98b30c155dfc3421fb6f10f9614..6187caa0caac9b188faeda32c84d7ae63c41cd6f
@@@ -649,11 -677,8 +649,9 @@@ asmlinkage long syscall_trace_enter(str
        if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
                trace_sys_enter(regs, regs->regs[2]);
  
-       audit_syscall_entry(syscall_get_arch(),
-                           syscall,
-                           regs->regs[4], regs->regs[5],
 -      audit_syscall_entry(regs->regs[2], regs->regs[4], regs->regs[5],
++      audit_syscall_entry(syscall, regs->regs[4], regs->regs[5],
                            regs->regs[6], regs->regs[7]);
 +      return syscall;
  }
  
  /*
Simple merge
Simple merge
Simple merge
Simple merge