mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
AUDIT: Escape comm when logging task info
It comes from the user; it needs to be escaped. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
bccf6ae083
commit
99e45eeac8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue