diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-21 11:52:57 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-21 11:52:57 -0400 |
commit | 7b5d781ce1f19fb7382d3d3fb7af48e429bed12d (patch) | |
tree | 8ab8eef2e8c3629c46d29ffb9c618d87c5e1a02c | |
parent | 326e9c8ba6a149f47e020719b23b24a14ba740d6 (diff) |
Fix oops due to thinko in avc_audit()
When I added the logging of pid= and comm= back to avc_audit() I
screwed it up. Put it back how it should be.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r-- | security/selinux/avc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 0fbc3e98c5ea..914d0d294fff 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
@@ -558,7 +558,7 @@ void avc_audit(u32 ssid, u32 tsid, | |||
558 | audit_log_format(ab, " for "); | 558 | audit_log_format(ab, " for "); |
559 | if (a && a->tsk) | 559 | if (a && a->tsk) |
560 | tsk = a->tsk; | 560 | tsk = a->tsk; |
561 | if (a->tsk && a->tsk->pid) { | 561 | if (tsk && tsk->pid) { |
562 | audit_log_format(ab, " pid=%d comm=", tsk->pid); | 562 | audit_log_format(ab, " pid=%d comm=", tsk->pid); |
563 | audit_log_untrustedstring(ab, tsk->comm); | 563 | audit_log_untrustedstring(ab, tsk->comm); |
564 | } | 564 | } |