Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7015
b: refs/heads/master
c: 94c80b2
h: refs/heads/master
i:
  7013: 12c3862
  7011: 7407c7c
  7007: 33b96fa
v: v3
  • Loading branch information
Bodo Stroesser authored and Linus Torvalds committed Sep 5, 2005
1 parent facefe0 commit bace277
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 08b178ebf37bbfb78329e0ae6ea688b103d205bf
refs/heads/master: 94c80b2598dbd2b8a6fe5f5c2c3af1beb37f66c7
15 changes: 13 additions & 2 deletions trunk/arch/i386/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,19 @@ void do_syscall_trace(struct pt_regs *regs, int entryexit)
/* do the secure computing check first */
secure_computing(regs->orig_eax);

if (unlikely(current->audit_context) && entryexit)
audit_syscall_exit(current, AUDITSC_RESULT(regs->eax), regs->eax);
if (unlikely(current->audit_context)) {
if (entryexit)
audit_syscall_exit(current, AUDITSC_RESULT(regs->eax), regs->eax);

/* Debug traps, when using PTRACE_SINGLESTEP, must be sent only
* on the syscall exit path. Normally, when TIF_SYSCALL_AUDIT is
* not used, entry.S will call us only on syscall exit, not
* entry ; so when TIF_SYSCALL_AUDIT is used we must avoid
* calling send_sigtrap() on syscall entry.
*/
else if (is_singlestep)
goto out;
}

if (!(current->ptrace & PT_PTRACED))
goto out;
Expand Down

0 comments on commit bace277

Please sign in to comment.