Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 126527e7 authored by Sami Tolvanen's avatar Sami Tolvanen Committed by android-build-merger
Browse files

Merge "logd: add a comment about untrusted content in the audit log"

am: 68de85bd

* commit '68de85bd':
  logd: add a comment about untrusted content in the audit log
parents 974bae41 68de85bd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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");