Union sepolicy within TWRP to make SELinux permissive

This patch set should make it easier to build TWRP in non-Omni
trees as it allows TWRP to modify the sepolicy instead of having
to merge a patch in external/sepolicy to meet TWRP's needs.

Change-Id: I73205343556abb0852ff4c5f8cbf293d840b95d9
This commit is contained in:
Ethan Yonker
2015-07-01 07:58:56 -05:00
committed by Dees Troy
parent 8ab5c13428
commit 11309e912d
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -17,15 +17,20 @@ LOCAL_PATH := $(call my-dir)
ifdef project-path-for
ifeq ($(LOCAL_PATH),$(call project-path-for,recovery))
PROJECT_PATH_AGREES := true
BOARD_SEPOLICY_DIRS += bootable/recovery-twrp/sepolicy
endif
else
ifeq ($(LOCAL_PATH),bootable/recovery)
PROJECT_PATH_AGREES := true
BOARD_SEPOLICY_DIRS += bootable/recovery/sepolicy
endif
endif
ifeq ($(PROJECT_PATH_AGREES),true)
# Make recovery domain permissive for TWRP
BOARD_SEPOLICY_UNION += twrp.te
include $(CLEAR_VARS)
TWRES_PATH := "/twres/"
+1
View File
@@ -0,0 +1 @@
permissive recovery;