Fix oops due to thinko in avc_audit()
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>
Sat, 21 May 2005 15:52:57 +0000 (16:52 +0100)
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>
Sat, 21 May 2005 15:52:57 +0000 (16:52 +0100)
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>
security/selinux/avc.c

index 0fbc3e98c5ea354a08e643283cc8813e7dc4655c..914d0d294fffc35298a5f5d239b13641a11543c3 100644 (file)
@@ -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);
        }