Build split file_contexts on TREBLE builds
Build file_contexts.bin on legacy builds. Test: Marlin and Bullhead build and boot with no new denials. Test: Marlin and Bullhead recovery boots with no new denials. Test: Bullhead boots with file_contexts.bin in / Test: Marlin boot with /system/etc/selinux/plat_file_contexts and /vendor/etc/selinux/nonplat_file_contexts. Bug: 36002414 Change-Id: I66f138fc3ad808df0480e0467cee03fd40177f31
This commit is contained in:
parent
dda9cbb350
commit
0cbbb8381e
|
@ -120,7 +120,9 @@ LOCAL_REQUIRED_MODULES += \
|
|||
nonplat_sepolicy.cil \
|
||||
plat_sepolicy.cil \
|
||||
plat_sepolicy.cil.sha256 \
|
||||
secilc
|
||||
secilc \
|
||||
nonplat_file_contexts \
|
||||
plat_file_contexts
|
||||
|
||||
# Include precompiled policy, unless told otherwise
|
||||
ifneq ($(PRODUCT_PRECOMPILED_SEPOLICY),false)
|
||||
|
@ -129,7 +131,8 @@ endif
|
|||
|
||||
else
|
||||
# Use monolithic SELinux policy
|
||||
LOCAL_REQUIRED_MODULES += sepolicy
|
||||
LOCAL_REQUIRED_MODULES += sepolicy \
|
||||
file_contexts.bin
|
||||
endif
|
||||
|
||||
# Create symlinks.
|
||||
|
|
Loading…
Reference in New Issue