aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2024-04-15 22:49:24 +0000
committerSteven Moreland <smoreland@google.com>2024-04-15 23:02:00 +0000
commitc8d5fc8b44738a80b8d89c05f8466f5544fb9d18 (patch)
treeb7283967b7a0b1ddc0ac5c37596955de7ff3f298
parentc20d8480e5b47e819c4dd9e2f314b4a26b616639 (diff)
downloadselinux-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.c5
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;