Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2207
b: refs/heads/master
c: 7ca0026
h: refs/heads/master
i:
  2205: 085f6a2
  2203: 2f9664b
  2199: 65692f6
  2191: 6f8d78c
  2175: f3eb7b1
v: v3
  • Loading branch information
David Woodhouse committed May 19, 2005
1 parent b02f730 commit c0ee931
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: cd77b8212d5473b800ac865364981d334ff564ea
refs/heads/master: 7ca0026495dbb644b4e32ede76be44072cb2bc7a
7 changes: 4 additions & 3 deletions trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ struct audit_entry {
struct audit_rule rule;
};

extern int audit_pid;

/* Check to see if two rules are identical. It is called from
* audit_del_rule during AUDIT_DEL. */
static int audit_compare_rule(struct audit_rule *a, struct audit_rule *b)
Expand Down Expand Up @@ -768,7 +770,7 @@ void audit_free(struct task_struct *tsk)

/* Check for system calls that do not go through the exit
* function (e.g., exit_group), then free context block. */
if (context->in_syscall && context->auditable)
if (context->in_syscall && context->auditable && context->pid != audit_pid)
audit_log_exit(context);

audit_free_context(context);
Expand Down Expand Up @@ -903,7 +905,7 @@ void audit_syscall_exit(struct task_struct *tsk, int valid, long return_code)
if (likely(!context))
return;

if (context->in_syscall && context->auditable)
if (context->in_syscall && context->auditable && context->pid != audit_pid)
audit_log_exit(context);

context->in_syscall = 0;
Expand Down Expand Up @@ -1126,7 +1128,6 @@ void audit_signal_info(int sig, struct task_struct *t)
{
extern pid_t audit_sig_pid;
extern uid_t audit_sig_uid;
extern int audit_pid;

if (unlikely(audit_pid && t->pid == audit_pid)) {
if (sig == SIGTERM || sig == SIGHUP) {
Expand Down

0 comments on commit c0ee931

Please sign in to comment.