Skip to content
Snippets Groups Projects
Commit 4fe3b0b9 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by android-build-merger
Browse files

Move non-treble devices to split file_contexts am: f965a0a1

am: 2703f3ee

Change-Id: I2130641f315522740c150f4a22f8a4fe20a9a085
parents b3d4fc14 2703f3ee
No related branches found
No related tags found
No related merge requests found
...@@ -190,8 +190,6 @@ LOCAL_REQUIRED_MODULES += \ ...@@ -190,8 +190,6 @@ LOCAL_REQUIRED_MODULES += \
plat_sepolicy.cil \ plat_sepolicy.cil \
plat_and_mapping_sepolicy.cil.sha256 \ plat_and_mapping_sepolicy.cil.sha256 \
secilc \ secilc \
nonplat_file_contexts \
plat_file_contexts \
plat_sepolicy_vers.txt \ plat_sepolicy_vers.txt \
treble_sepolicy_tests treble_sepolicy_tests
...@@ -199,12 +197,15 @@ LOCAL_REQUIRED_MODULES += \ ...@@ -199,12 +197,15 @@ LOCAL_REQUIRED_MODULES += \
ifneq ($(PRODUCT_PRECOMPILED_SEPOLICY),false) ifneq ($(PRODUCT_PRECOMPILED_SEPOLICY),false)
LOCAL_REQUIRED_MODULES += precompiled_sepolicy precompiled_sepolicy.plat_and_mapping.sha256 LOCAL_REQUIRED_MODULES += precompiled_sepolicy precompiled_sepolicy.plat_and_mapping.sha256
endif endif
else else
# Use monolithic SELinux policy # Use monolithic SELinux policy
LOCAL_REQUIRED_MODULES += sepolicy \ LOCAL_REQUIRED_MODULES += sepolicy
file_contexts.bin
endif endif
LOCAL_REQUIRED_MODULES += \
nonplat_file_contexts \
plat_file_contexts
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
################################## ##################################
...@@ -703,7 +704,11 @@ include $(CLEAR_VARS) ...@@ -703,7 +704,11 @@ include $(CLEAR_VARS)
LOCAL_MODULE := plat_file_contexts LOCAL_MODULE := plat_file_contexts
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
ifeq ($(PRODUCT_FULL_TREBLE),true)
LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/selinux LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/selinux
else
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
endif
include $(BUILD_SYSTEM)/base_rules.mk include $(BUILD_SYSTEM)/base_rules.mk
...@@ -733,7 +738,11 @@ include $(CLEAR_VARS) ...@@ -733,7 +738,11 @@ include $(CLEAR_VARS)
LOCAL_MODULE := nonplat_file_contexts LOCAL_MODULE := nonplat_file_contexts
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
ifeq ($(PRODUCT_FULL_TREBLE),true)
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/selinux LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/selinux
else
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
endif
include $(BUILD_SYSTEM)/base_rules.mk include $(BUILD_SYSTEM)/base_rules.mk
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
/sdcard u:object_r:rootfs:s0 /sdcard u:object_r:rootfs:s0
# SELinux policy files # SELinux policy files
/file_contexts\.bin u:object_r:file_contexts_file:s0
/nonplat_file_contexts u:object_r:file_contexts_file:s0 /nonplat_file_contexts u:object_r:file_contexts_file:s0
/plat_file_contexts u:object_r:file_contexts_file:s0 /plat_file_contexts u:object_r:file_contexts_file:s0
/mapping_sepolicy\.cil u:object_r:sepolicy_file:s0 /mapping_sepolicy\.cil u:object_r:sepolicy_file:s0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment