Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
Fixup union sepolicy
Browse files Browse the repository at this point in the history
This change solve two issue:
1) Policies related to recovery should be only included in recovery
policy
2) In CM trees the sepolicy dir was always bootable/recovery-
twrp/sepolicy, even if recovery path was bootable/recovery

Change-Id: I9466d22293074ba5f5240abe8b97a5d1bf30982d
  • Loading branch information
handymenny authored and Dees-Troy committed Nov 5, 2015
1 parent 54e9c83 commit f591c87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ 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
BOARD_SEPOLICY_DIRS += $(call project-path-for,recovery)/sepolicy
endif
else
ifeq ($(LOCAL_PATH),bootable/recovery)
Expand Down
5 changes: 4 additions & 1 deletion sepolicy/twrp.te
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
permissive recovery;
recovery_only(`
# Allow recovery to set permissive mode
permissive recovery;
')

0 comments on commit f591c87

Please sign in to comment.