projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bccf6ae
)
AUDIT: Escape comm when logging task info
author
David Woodhouse
<dwmw2@shinybook.infradead.org>
Mon, 23 May 2005 20:57:41 +0000
(21:57 +0100)
committer
David Woodhouse
<dwmw2@shinybook.infradead.org>
Mon, 23 May 2005 20:57:41 +0000
(21:57 +0100)
It comes from the user; it needs to be escaped.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
kernel/auditsc.c
patch
|
blob
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index
5fc4f52
..
b45677e
100644
(file)
--- a/
kernel/auditsc.c
+++ b/
kernel/auditsc.c
@@
-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;