[compiler-rt] [sanitizer] Disable writes to log files for binaries in a secure context. (PR #92593)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 15:58:37 PDT 2024


================
@@ -26,6 +26,7 @@ void LogMessageOnPrintf(const char *str) {}
 void WriteToSyslog(const char *buffer) {}
 void Abort() { internal__exit(1); }
 bool CreateDir(const char *pathname) { return false; }
+bool ShouldTreatRuntimeSecurely() { return false; }
----------------
fmayer wrote:

I think this is fine for now, but we should leave a TODO to revist whether this is the correct default. I can see arguments both ways "don't break anything" or "be more secure by default".

https://github.com/llvm/llvm-project/pull/92593


More information about the llvm-commits mailing list