Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63735
b: refs/heads/master
c: 175fc48
h: refs/heads/master
i:
  63733: 3af1911
  63731: 8f1eb59
  63727: 2d6b288
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Aug 8, 2007
1 parent 07c5da9 commit af14616
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 9dc83afdbefd184bf29f347e8fcbb6d8a2b5e6fe
refs/heads/master: 175fc484256e9c85e043f599ec2f6bc0d2e6c443
22 changes: 11 additions & 11 deletions trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1992,19 +1992,19 @@ int __audit_signal_info(int sig, struct task_struct *t)
extern uid_t audit_sig_uid;
extern u32 audit_sig_sid;

if (audit_pid && t->tgid == audit_pid &&
(sig == SIGTERM || sig == SIGHUP || sig == SIGUSR1)) {
audit_sig_pid = tsk->pid;
if (ctx)
audit_sig_uid = ctx->loginuid;
else
audit_sig_uid = tsk->uid;
selinux_get_task_sid(tsk, &audit_sig_sid);
if (audit_pid && t->tgid == audit_pid) {
if (sig == SIGTERM || sig == SIGHUP || sig == SIGUSR1) {
audit_sig_pid = tsk->pid;
if (ctx)
audit_sig_uid = ctx->loginuid;
else
audit_sig_uid = tsk->uid;
selinux_get_task_sid(tsk, &audit_sig_sid);
}
if (!audit_signals || audit_dummy_context())
return 0;
}

if (!audit_signals) /* audit_context checked in wrapper */
return 0;

/* optimize the common case by putting first signal recipient directly
* in audit_context */
if (!ctx->target_pid) {
Expand Down

0 comments on commit af14616

Please sign in to comment.