Commit 83c7d091 authored by 's avatar
Browse files

AUDIT: Avoid log pollution by untrusted strings.



We log strings from userspace, such as arguments to open(). These could
be formatted to contain \n followed by fake audit log entries. Provide
a function for logging such strings, which gives a hex dump when the
string contains anything but basic printable ASCII characters. Use it
for logging filenames.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent c60c3906
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment