From ccdd6e11dc4b3927bfd77393c629af681036ce93 Mon Sep 17 00:00:00 2001 From: Dan Cashman <dcashman@google.com> Date: Thu, 15 Jun 2017 11:18:04 -0700 Subject: [PATCH] Exempt ASAN from selinux build-checks. ASAN makes use of shenanigans that violate our policy best-practices. This is by design. Exempt them from these tests to get it building again. Bug: 37740897 Test: Builds with ASAN enabled. Change-Id: Iffde28c2741466da5862b2dfe1fffa2c0d93caeb --- Android.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 0f7be612f..28d8e6bcb 100644 --- a/Android.mk +++ b/Android.mk @@ -190,9 +190,13 @@ LOCAL_REQUIRED_MODULES += \ plat_sepolicy.cil \ plat_and_mapping_sepolicy.cil.sha256 \ secilc \ - plat_sepolicy_vers.txt \ + plat_sepolicy_vers.txt + +ifneq ($(with_asan),true) +LOCAL_REQUIRED_MODULES += \ treble_sepolicy_tests \ sepolicy_tests +endif # Include precompiled policy, unless told otherwise ifneq ($(PRODUCT_PRECOMPILED_SEPOLICY),false) -- GitLab