Merge changes from topic \'prop-security\'

am: 65fc485574

* commit '65fc48557485e0d8afafb5c8c5644d93b53c3214':
  Abort if __system_property_area_init fails
  restorecon /property_contexts
This commit is contained in:
Tom Cherry 2015-12-03 22:58:57 +00:00 committed by android-build-merger
commit e40884afa0
2 changed files with 3 additions and 1 deletions

View File

@ -602,6 +602,7 @@ int main(int argc, char** argv) {
restorecon("/dev");
restorecon("/dev/socket");
restorecon("/dev/__properties__");
restorecon("/property_contexts");
restorecon_recursive("/sys");
epoll_fd = epoll_create1(EPOLL_CLOEXEC);

View File

@ -79,7 +79,8 @@ void property_init() {
property_area_initialized = true;
if (__system_property_area_init()) {
return;
ERROR("Failed to initialize property area\n");
exit(1);
}
pa_workspace.size = 0;