From 9642d1dd8bf2b844008baf0f559f1d621f64d549 Mon Sep 17 00:00:00 2001 From: William Roberts Date: Thu, 15 Aug 2013 13:08:41 -0700 Subject: [PATCH] sepolicy: Start CM Common sepolicy Rather than having to maintain out of tree changes, it is often easier to maintain a hiearchy of changes, starting with the vendors common config file. From there, inheriting products can pick up a base and start to add or remove certain bits from it, making use of the BOARD_SEPOLICY_* functions documented in external/sepolicy/README. Change-Id: I28a4aaf6c126535f0a88001582641b234a750015 --- config/common.mk | 2 +- sepolicy/mac_permissions.xml | 17 +++++++++++++++++ sepolicy/sepolicy.mk | 10 ++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 sepolicy/mac_permissions.xml create mode 100644 sepolicy/sepolicy.mk diff --git a/config/common.mk b/config/common.mk index 22be0b7d..36584f21 100644 --- a/config/common.mk +++ b/config/common.mk @@ -259,5 +259,5 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.cm.version=$(CM_VERSION) \ ro.modversion=$(CM_VERSION) - +-include vendor/cm/sepolicy/sepolicy.mk -include $(WORKSPACE)/hudson/image-auto-bits.mk diff --git a/sepolicy/mac_permissions.xml b/sepolicy/mac_permissions.xml new file mode 100644 index 00000000..e91c6f41 --- /dev/null +++ b/sepolicy/mac_permissions.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/sepolicy/sepolicy.mk b/sepolicy/sepolicy.mk new file mode 100644 index 00000000..2defe789 --- /dev/null +++ b/sepolicy/sepolicy.mk @@ -0,0 +1,10 @@ +# +# This policy configuration will be used by all products that +# inherit from CM +# + +BOARD_SEPOLICY_DIRS := \ + vendor/cm/sepolicy + +BOARD_SEPOLICY_UNION := \ + mac_permissions.xml