summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2015-11-30 16:40:25 -0800
committerTom Cherry <tomcherry@google.com>2015-12-01 17:47:35 -0800
commite36a85cdcc93a84a6869fc8fc3fc82e3639d4398 (patch)
treecc60ebe797feb6304fc6cfe113383f34594bd51d
parenta3892504acda9ab280db5ade66c0d961fbd936a6 (diff)
restorecon /property_contexts
/property_contexts exists before selinux policies are loaded, so we must restorecon before other processes can access it Bug: 21852512 Change-Id: Ie983caac635eb928ab19eea996a5625f3673de39
-rw-r--r--init/init.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init.cpp b/init/init.cpp
index 86aed9ac7..958db3611 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -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);