From 0fce2217466a0e0568126df32d5869c506e2f37f Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Fri, 18 Nov 2005 14:43:54 +0000 Subject: [PATCH] --- yaml --- r: 23983 b: refs/heads/master c: ee436dc46a762f430e37952d375a23d87735f73f h: refs/heads/master i: 23981: df0b99f1965120c4141b2788f4a84644bd478750 23979: 11accf1dde842f4b86c68260ec38827f7b5d4e31 23975: 06ddbd56f8eb634239b141e83327f19f552782a2 23967: 258e1d47b22b029c0e8c4d84b576990b225174cf v: v3 --- [refs] | 2 +- trunk/arch/ia64/kernel/ptrace.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index aa147228358f..f02b88abd7be 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7306a0b9b3e2056a616c84841288ca2431a05627 +refs/heads/master: ee436dc46a762f430e37952d375a23d87735f73f diff --git a/trunk/arch/ia64/kernel/ptrace.c b/trunk/arch/ia64/kernel/ptrace.c index eaed14aac6aa..9887c8787e7a 100644 --- a/trunk/arch/ia64/kernel/ptrace.c +++ b/trunk/arch/ia64/kernel/ptrace.c @@ -1656,8 +1656,14 @@ syscall_trace_leave (long arg0, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6, long arg7, struct pt_regs regs) { - if (unlikely(current->audit_context)) - audit_syscall_exit(current, AUDITSC_RESULT(regs.r10), regs.r8); + if (unlikely(current->audit_context)) { + int success = AUDITSC_RESULT(regs.r10); + long result = regs.r8; + + if (success != AUDITSC_SUCCESS) + result = -result; + audit_syscall_exit(current, success, result); + } if (test_thread_flag(TIF_SYSCALL_TRACE) && (current->ptrace & PT_PTRACED))