From 7a5db4ec7f83f4156edc6db2c79181e9fc4f6658 Mon Sep 17 00:00:00 2001 From: Sandeep Patil Date: Tue, 27 Dec 2016 17:40:53 -0800 Subject: [PATCH] init: split property context into platform & non-platform components Bug: 33746484 Test: Successfully boot with original service and property contexts. Test: Successfully boot with split serivce and property contexts. Test: 'getprop -Z' Change-Id: Ib9c087115040c1609aa64a3ed66d4e67e937e33d Signed-off-by: Sandeep Patil --- init/init.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/init.cpp b/init/init.cpp index 1ce3c35fc..a84bdb5f2 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -810,7 +810,8 @@ int main(int argc, char** argv) { restorecon("/dev/random"); restorecon("/dev/urandom"); restorecon("/dev/__properties__"); - restorecon("/property_contexts"); + restorecon("/plat_property_contexts"); + restorecon("/nonplat_property_contexts"); restorecon("/sys", SELINUX_ANDROID_RESTORECON_RECURSE); restorecon("/dev/block", SELINUX_ANDROID_RESTORECON_RECURSE); restorecon("/dev/device-mapper");