commit | 2e588677716f3e7f84c6274aeeb943efd6b96770 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Tue Jan 03 10:35:34 2017 -0800 |
committer | Nick Kralevich <nnk@google.com> | Tue Jan 03 12:39:28 2017 -0800 |
tree | 3d8874c2fb0917eaa2774dbe8a3d36f381ea2f37 | |
parent | 10a7b9bb8ba3eaf61bac9e36e14bdedf1c5ea891 [diff] |
LogAudit.cpp: replace newlines with spaces in audit messages Some kernels have a bug which causes a newline to show up in audit messages. The embedded newlines cause one message to look like two due to prefix controls. Replace any newlines with spaces. Duplicate spaces are further consolidated in code immediately after this newly added code. Test: create an audit message with a newline, and watch it be cleaned up. Bug: 27878170 Change-Id: Id90c29ab9e10d3be96f51403b0293622d782422a