From ac171b44372ad506fecf1cd0399db2fa9fd1289f Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Wed, 12 Apr 2017 17:01:54 -0700 Subject: [PATCH] secilc: expand generated attributes Attributes added to the policy by the policy compiler are causing performance issues. Telling the compiler to expand these auto-generated attributes to their underlying types prevents preemtion during policy lookup. With this patch the number of attributes in policy drops from 845 to 475. The number of attributes assigned to the bluetooth domain drops from 41 to 11. Bug: 3650825 Test: Build and boot Marlin Change-Id: Ica06e82001eca323c435fe13c5cf4beba74999e2 --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index ff3d20db1..7d08a262f 100644 --- a/Android.mk +++ b/Android.mk @@ -443,7 +443,7 @@ $(LOCAL_BUILT_MODULE): PRIVATE_CIL_FILES := \ $(built_plat_cil) $(built_mapping_cil) $(built_nonplat_cil) $(LOCAL_BUILT_MODULE): $(HOST_OUT_EXECUTABLES)/secilc \ $(built_plat_cil) $(built_mapping_cil) $(built_nonplat_cil) - $(hide) $(HOST_OUT_EXECUTABLES)/secilc -M true -c $(POLICYVERS) \ + $(hide) $(HOST_OUT_EXECUTABLES)/secilc -M true -G -c $(POLICYVERS) \ $(PRIVATE_CIL_FILES) -o $@ -f /dev/null built_precompiled_sepolicy := $(LOCAL_BUILT_MODULE)