From 4bbc8ad3be193e5cb89ce92ce959fb76699e39d6 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Wed, 9 Sep 2020 11:47:36 +0000 Subject: [PATCH] mediatek: Add a README and makefiles required for inclusion Signed-off-by: Aayush Gupta --- Android.mk | 10 ++++++++++ README.md | 19 +++++++++++++++++++ sepolicy.mk | 9 +++++++++ 3 files changed, 38 insertions(+) create mode 100644 Android.mk create mode 100644 README.md create mode 100644 sepolicy.mk diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..7c0ea76 --- /dev/null +++ b/Android.mk @@ -0,0 +1,10 @@ +# Don't recurse into the platform makefiles. We don't care about them, and +# we don't want to force a reset of BOARD_SEPOLICY_DIRS +# +# If you want to use these policies, add a +# +# include device/mediatek/sepolicy/sepolicy.mk +# +# to your device's BoardConfig. It is highly recommended that in case +# you have your own BOARD_SEPOLICY_DIRS declaration, +# the inclusion happens _before_ those lines diff --git a/README.md b/README.md new file mode 100644 index 0000000..6ec6b65 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# SELinux policy for MediaTek devices + +Don't recurse into the platform makefiles. We don't care about them, and we +don't want to force a reset of `BOARD_SEPOLICY_DIRS`. + +If you want to use these policies, add a + + include device/mediatek/sepolicy/sepolicy.mk + +to your device's BoardConfig. It is highly recommended that in case you have +your own `BOARD_SEPOLICY_DIRS` declaration, the inclusion happens _before_ +those lines + +## Repository Details +This repository uses [device/mediatek/wembley-sepolicy](https://android.googlesource.com/device/mediatek/wembley-sepolicy/) as base till `4769fb0d973bf079934054c6c5423ca06d67010a`. +After that Google's device-specific changes starts. + +Till `4769fb0d973bf079934054c6c5423ca06d67010a`, this repository is similar to +the **basic** sepolicy repository provided by MediaTek to the OEMs. diff --git a/sepolicy.mk b/sepolicy.mk new file mode 100644 index 0000000..78b2555 --- /dev/null +++ b/sepolicy.mk @@ -0,0 +1,9 @@ +# Board specific SELinux policy variable definitions +BOARD_SEPOLICY_DIRS := \ + device/mediatek/sepolicy/non_plat + +BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \ + device/mediatek/sepolicy/plat_public + +BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \ + device/mediatek/sepolicy/plat_private