Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23983
b: refs/heads/master
c: ee436dc
h: refs/heads/master
i:
  23981: df0b99f
  23979: 11accf1
  23975: 06ddbd5
  23967: 258e1d4
v: v3
  • Loading branch information
David Woodhouse authored and Al Viro committed Mar 20, 2006
1 parent 2f85b3b commit 0fce221
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7306a0b9b3e2056a616c84841288ca2431a05627
refs/heads/master: ee436dc46a762f430e37952d375a23d87735f73f
10 changes: 8 additions & 2 deletions trunk/arch/ia64/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0fce221

Please sign in to comment.