am 4b4c5645: Merge "Extend sepolicy for SANITIZE_TARGET."

* commit '4b4c5645931a0e187d261c4db6caac67d09ab4e4':
  Extend sepolicy for SANITIZE_TARGET.
This commit is contained in:
Evgenii Stepanov 2015-06-15 21:09:13 +00:00 committed by Android Git Automerger
commit 651a315ad2
2 changed files with 6 additions and 1 deletions

View file

@ -134,7 +134,11 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_SYSTEM)/base_rules.mk
ALL_FC_FILES := $(call build_policy, file_contexts)
FILE_CONTEXTS := file_contexts
ifeq (address,$(strip $(SANITIZE_TARGET)))
FILE_CONTEXTS := $(FILE_CONTEXTS) file_contexts_asan
endif
ALL_FC_FILES := $(call build_policy, $(FILE_CONTEXTS))
$(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_sepolicy)
$(LOCAL_BUILT_MODULE): $(ALL_FC_FILES) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc

1
file_contexts_asan Normal file
View file

@ -0,0 +1 @@
/data/lib(/.*)? u:object_r:system_file:s0