From 2e4278499ef12e60ba867ca5bc8c313bc7fce724 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Wed, 26 Feb 2020 15:09:19 +0100 Subject: [PATCH] universal7885: Make fastbootd permissive in non-user recovery builds Signed-off-by: SamarV-121 --- BoardConfigCommon.mk | 3 +++ sepolicy/private/fastbootd.te | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 sepolicy/private/fastbootd.te diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index cd72c91..0b48dfe 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -62,6 +62,9 @@ BOARD_FLASH_BLOCK_SIZE := 131072 # Properties BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true +# SELinux +BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(COMMON_PATH)/sepolicy/private + # Vendor TARGET_COPY_OUT_VENDOR := vendor diff --git a/sepolicy/private/fastbootd.te b/sepolicy/private/fastbootd.te new file mode 100644 index 0000000..742f31e --- /dev/null +++ b/sepolicy/private/fastbootd.te @@ -0,0 +1,5 @@ +recovery_only(` +userdebug_or_eng(` +permissive fastbootd; +') +')