commit | f03dde8549c5b49a84873698a67d103309777bbf | [log] [tgz] |
---|---|---|
author | ThiƩbaud Weksteen <tweek@google.com> | Mon Apr 03 16:53:12 2023 +1000 |
committer | ThiƩbaud Weksteen <tweek@google.com> | Wed Apr 05 09:32:18 2023 +1000 |
tree | 38461186b0dc6e0e59719c936a76382bbaf93f70 | |
parent | ecdbbbda825bb26715881037a6f3a5aaf2f95de7 [diff] |
Skip newlines for SELinux logs libselinux log messages usually end with a new line character. Android log system does not require the new line character and will include the character as-is in the log buffer. This trimming was already implemented when the message is typed as SELINUX_AVC (see SelinuxAvcLog). Move the truncation one level up so it is occurring for all types of logs. Test: boot & adb logcat & inspect SELinux logs Change-Id: I360359c1b178ef24d555dd41f8d4a18b293a175c