From d5180b638b3667d2ff749ebca958dec463d1d7db Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Thu, 22 Oct 2020 13:02:38 +0530 Subject: [PATCH] extra: Switch to BOARD_VENDOR_SEPOLICY_DIRS - BOARD_SEPOLICY_DIRS is deprecated and gives compile-time errors when used in unison with a device using BOARD_VENDOR_SEPOLICY_DIRS Ref: [0]: https://github.com/LineageOS/android_system_sepolicy/commit/ec3ac470a98342c13c1fec8d46433c73b08531be Signed-off-by: Aayush Gupta Change-Id: Icefb062cc8cdef532b4310684d9a66afe97e49c4 --- BoardConfigExtra.mk | 2 +- sepolicy/system_server.te | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 sepolicy/system_server.te diff --git a/BoardConfigExtra.mk b/BoardConfigExtra.mk index 8f072d7..d4891bb 100644 --- a/BoardConfigExtra.mk +++ b/BoardConfigExtra.mk @@ -12,4 +12,4 @@ ifndef TARGET_COPY_OUT_SYSTEM_EXT endif ## SELinux -BOARD_SEPOLICY_DIRS += vendor/extra/sepolicy +BOARD_VENDOR_SEPOLICY_DIRS += vendor/extra/sepolicy diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te new file mode 100644 index 0000000..111146b --- /dev/null +++ b/sepolicy/system_server.te @@ -0,0 +1,3 @@ +binder_call(system_server, zygote) +binder_call(system_app, zygote) +binder_call(zygote, system_server)