aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/avc.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-21 11:52:57 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-21 11:52:57 -0400
commit7b5d781ce1f19fb7382d3d3fb7af48e429bed12d (patch)
tree8ab8eef2e8c3629c46d29ffb9c618d87c5e1a02c /security/selinux/avc.c
parent326e9c8ba6a149f47e020719b23b24a14ba740d6 (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>
Diffstat (limited to 'security/selinux/avc.c')
-rw-r--r--security/selinux/avc.c2
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 }