diff options
author | Steven Moreland <smoreland@google.com> | 2024-04-15 22:49:24 +0000 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2024-04-15 23:02:00 +0000 |
commit | c8d5fc8b44738a80b8d89c05f8466f5544fb9d18 (patch) | |
tree | b7283967b7a0b1ddc0ac5c37596955de7ff3f298 | |
parent | c20d8480e5b47e819c4dd9e2f314b4a26b616639 (diff) | |
download | selinux-c8d5fc8b44738a80b8d89c05f8466f5544fb9d18.tar.gz |
checkpolicy: disable leak detection
Breaking ASAN host builds.
Bugs: me
Test: build with SANITIZE_HOST=address
Change-Id: Idb72d16d8fbe4d082b94994854e488f57ef4bb26
-rw-r--r-- | checkpolicy/checkpolicy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/checkpolicy/checkpolicy.c b/checkpolicy/checkpolicy.c index 48c31261..8705d44d 100644 --- a/checkpolicy/checkpolicy.c +++ b/checkpolicy/checkpolicy.c @@ -92,6 +92,11 @@ #include "checkpolicy.h" #include "parse_util.h" +// ANDROID: this code does not call policydb_destroy, perhaps others +const char *__asan_default_options() { + return "detect_leaks=0"; +} + static policydb_t policydb; static sidtab_t sidtab; |