Commit 99e45eea authored by David Woodhouse's avatar David Woodhouse

AUDIT: Escape comm when logging task info

It comes from the user; it needs to be escaped.
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent bccf6ae0
......@@ -650,7 +650,8 @@ static void audit_log_task_info(struct audit_buffer *ab)
struct vm_area_struct *vma;
get_task_comm(name, current);
audit_log_format(ab, " comm=%s", name);
audit_log_format(ab, " comm=");
audit_log_untrustedstring(ab, name);
if (!mm)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment