Merge changes from topic \'prop-security\' am: 65fc485574
am: e40884afa0
* commit 'e40884afa0d0e2aa24e957e78050a193589b07fd':
Abort if __system_property_area_init fails
restorecon /property_contexts
diff --git a/init/init.cpp b/init/init.cpp
index 86aed9a..958db36 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -602,6 +602,7 @@
restorecon("/dev");
restorecon("/dev/socket");
restorecon("/dev/__properties__");
+ restorecon("/property_contexts");
restorecon_recursive("/sys");
epoll_fd = epoll_create1(EPOLL_CLOEXEC);
diff --git a/init/property_service.cpp b/init/property_service.cpp
index 96b4a37..66e46f8 100644
--- a/init/property_service.cpp
+++ b/init/property_service.cpp
@@ -79,7 +79,8 @@
property_area_initialized = true;
if (__system_property_area_init()) {
- return;
+ ERROR("Failed to initialize property area\n");
+ exit(1);
}
pa_workspace.size = 0;