diff options
| author | Tom Cherry <tomcherry@google.com> | 2015-11-30 16:40:25 -0800 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2015-12-01 17:47:35 -0800 |
| commit | e36a85cdcc93a84a6869fc8fc3fc82e3639d4398 (patch) | |
| tree | cc60ebe797feb6304fc6cfe113383f34594bd51d /init | |
| parent | a3892504acda9ab280db5ade66c0d961fbd936a6 (diff) | |
| download | core-e36a85cdcc93a84a6869fc8fc3fc82e3639d4398.tar.gz core-e36a85cdcc93a84a6869fc8fc3fc82e3639d4398.tar.bz2 core-e36a85cdcc93a84a6869fc8fc3fc82e3639d4398.zip | |
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
Diffstat (limited to 'init')
| -rw-r--r-- | init/init.cpp | 1 |
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); |
