]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'audit/master'
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 29 Apr 2014 01:58:34 +0000 (11:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 29 Apr 2014 01:58:34 +0000 (11: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 c6e9cd2bca8dbf7de5512c9be8de0f2b92db7bd4,eac2df28bf732ac5e18d4a6b1a6de383e8ef9146..c2e5a79fdea0c2b25dd330035feb79bf07315923
@@@ -129,10 -105,9 +129,10 @@@ 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;
  #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