mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 23:00:21 +00:00
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>
This commit is contained in:
parent
326e9c8ba6
commit
7b5d781ce1
@ -558,7 +558,7 @@ void avc_audit(u32 ssid, u32 tsid,
|
|||||||
audit_log_format(ab, " for ");
|
audit_log_format(ab, " for ");
|
||||||
if (a && a->tsk)
|
if (a && a->tsk)
|
||||||
tsk = 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_format(ab, " pid=%d comm=", tsk->pid);
|
||||||
audit_log_untrustedstring(ab, tsk->comm);
|
audit_log_untrustedstring(ab, tsk->comm);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user