[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
Fri May 17 15:05:10 PDT 2024
================
@@ -19,6 +19,13 @@
#include "sanitizer_common.h"
#include "sanitizer_file.h"
+
+#if SANITIZER_LINUX || (SANITIZER_ANDROID && __ANDROID_API__ >= 18)
----------------
fmayer wrote:
But what you can do is use the weak definition from that file
`if (getauxval && getauxval(kAtSecure))`
but you'd have to hardcode the `kAtSecure = 23`
https://github.com/llvm/llvm-project/pull/92593
More information about the llvm-commits
mailing list