From e36a85cdcc93a84a6869fc8fc3fc82e3639d4398 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Mon, 30 Nov 2015 16:40:25 -0800 Subject: [PATCH] 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 --- init/init.cpp | 1 + 1 file changed, 1 insertion(+) 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);