From: David Woodhouse Date: Sat, 21 May 2005 15:52:57 +0000 (+0100) Subject: Fix oops due to thinko in avc_audit() X-Git-Tag: v2.6.14-rc2~49^2~47 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7b5d781ce1f19fb7382d3d3fb7af48e429bed12d;p=~shefty%2Frdma-dev.git 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 --- diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 0fbc3e98c5e..914d0d294ff 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c @@ -558,7 +558,7 @@ void avc_audit(u32 ssid, u32 tsid, audit_log_format(ab, " for "); if (a && a->tsk) tsk = a->tsk; - if (a->tsk && a->tsk->pid) { + if (tsk && tsk->pid) { audit_log_format(ab, " pid=%d comm=", tsk->pid); audit_log_untrustedstring(ab, tsk->comm); }