From: David Woodhouse Date: Sat, 21 May 2005 15:52:57 +0000 (+0100) Subject: Fix oops due to thinko in avc_audit() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7b5d781ce1f19fb7382d3d3fb7af48e429bed12d;p=openwrt%2Fstaging%2Fblogic.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 0fbc3e98c5ea..914d0d294fff 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); }