summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-17 16:45:20 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-17 16:48:28 +0100
commitd2d1a7ffb1f5e831ed654379496f0efe88159a66 (patch)
treed8ccd176a7d0c188b0f40c430b90cc56da42c3c8 /config
parent1f1434338bc7445a9d309ace69e06ec6a17bb303 (diff)
downloadvendor_replicant-d2d1a7ffb1f5e831ed654379496f0efe88159a66.zip
vendor_replicant-d2d1a7ffb1f5e831ed654379496f0efe88159a66.tar.gz
vendor_replicant-d2d1a7ffb1f5e831ed654379496f0efe88159a66.tar.bz2
Add SELinux filesystem relabeling to init
Since not all recoveries out there will support the OTA packages' own labeling, check at boot if the system needs labels (and apply them) Change-Id: I58767977b90a78a12efe7bd9d713654eadf47e7a
Diffstat (limited to 'config')
-rw-r--r--config/common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/common.mk b/config/common.mk
index 96e6ce5..56d53b7 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -95,6 +95,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
+# SELinux filesystem labels
+PRODUCT_COPY_FILES += \
+ vendor/cm/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel
+
# CM-specific init file
PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/etc/init.local.rc:root/init.cm.rc