commit | 99e45eeac867d51ff3395dcf3d7aedf5ac2812c8 | [log] [tgz] |
---|---|---|
author | David Woodhouse <dwmw2@shinybook.infradead.org> | Mon May 23 21:57:41 2005 +0100 |
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | Mon May 23 21:57:41 2005 +0100 |
tree | 6cad4f59214ed4563ddc189bc98f05d1e2b1a5cc | |
parent | bccf6ae083318ea08094d6ab185fdf7c49906b3a [diff] [blame] |
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>
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 5fc4f52..b45677e 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c
@@ -650,7 +650,8 @@ 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;