Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;