summaryrefslogtreecommitdiffstats
path: root/security/selinux/avc.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-21 16:52:57 +0100
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-21 16:52:57 +0100
commit7b5d781ce1f19fb7382d3d3fb7af48e429bed12d (patch)
tree8ab8eef2e8c3629c46d29ffb9c618d87c5e1a02c /security/selinux/avc.c
parent326e9c8ba6a149f47e020719b23b24a14ba740d6 (diff)
downloadop-kernel-dev-7b5d781ce1f19fb7382d3d3fb7af48e429bed12d.zip
op-kernel-dev-7b5d781ce1f19fb7382d3d3fb7af48e429bed12d.tar.gz
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 0fbc3e9..914d0d2 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);
}
OpenPOWER on IntegriCloud