提交 99e45eea 编写于 作者: D David Woodhouse

AUDIT: Escape comm when logging task info

It comes from the user; it needs to be escaped.
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 bccf6ae0
...@@ -650,7 +650,8 @@ static void audit_log_task_info(struct audit_buffer *ab) ...@@ -650,7 +650,8 @@ static void audit_log_task_info(struct audit_buffer *ab)
struct vm_area_struct *vma; struct vm_area_struct *vma;
get_task_comm(name, current); get_task_comm(name, current);
audit_log_format(ab, " comm=%s", name); audit_log_format(ab, " comm=");
audit_log_untrustedstring(ab, name);
if (!mm) if (!mm)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册