Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33112
b: refs/heads/master
c: 3f2792f
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Aug 3, 2006
1 parent ae3d0e5 commit be32ad5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 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: 5ac3a9c26c1cc4861d9cdd8b293fecbfcdc81afe
refs/heads/master: 3f2792ffbd88dc1cd41d226674cc428914981e98
23 changes: 12 additions & 11 deletions trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,17 +534,7 @@ static inline struct audit_context *audit_get_context(struct task_struct *tsk,
}

get_context:
context->pid = tsk->pid;
context->ppid = sys_getppid(); /* sic. tsk == current in all cases */
context->uid = tsk->uid;
context->gid = tsk->gid;
context->euid = tsk->euid;
context->suid = tsk->suid;
context->fsuid = tsk->fsuid;
context->egid = tsk->egid;
context->sgid = tsk->sgid;
context->fsgid = tsk->fsgid;
context->personality = tsk->personality;

tsk->audit_context = NULL;
return context;
}
Expand Down Expand Up @@ -753,6 +743,17 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
const char *tty;

/* tsk == current */
context->pid = tsk->pid;
context->ppid = sys_getppid(); /* sic. tsk == current in all cases */
context->uid = tsk->uid;
context->gid = tsk->gid;
context->euid = tsk->euid;
context->suid = tsk->suid;
context->fsuid = tsk->fsuid;
context->egid = tsk->egid;
context->sgid = tsk->sgid;
context->fsgid = tsk->fsgid;
context->personality = tsk->personality;

ab = audit_log_start(context, GFP_KERNEL, AUDIT_SYSCALL);
if (!ab)
Expand Down

0 comments on commit be32ad5

Please sign in to comment.