Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e36a85cd authored by Tom Cherry's avatar Tom Cherry
Browse files

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
parent a3892504
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);