Merge "logd: add a comment about untrusted content in the audit log" am: 68de85bda9
am: 126527e74b
* commit '126527e74bd7f7180e5705d68c7d67a6be9ab5a9':
logd: add a comment about untrusted content in the audit log
This commit is contained in:
commit
8baed60b58
1 changed files with 4 additions and 0 deletions
|
|
@ -164,6 +164,10 @@ int LogAudit::logPrint(const char *fmt, ...) {
|
|||
}
|
||||
}
|
||||
|
||||
// Note: The audit log can include untrusted strings, but those containing
|
||||
// "a control character, unprintable character, double quote mark, or a
|
||||
// space" are hex encoded. The space character before the search term is
|
||||
// therefore needed to prevent denial of service. Do not remove the space.
|
||||
bool permissive = strstr(str, " enforcing=0") ||
|
||||
strstr(str, " permissive=1");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue