summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-10-02 16:59:02 -0700
committerTom Cherry <tomcherry@google.com>2017-10-02 16:59:02 -0700
commitac7428b2f54aa7f5c489c887940f5b201c4546b0 (patch)
treeaad87ae7599216b1ff8834a3316134e0c2396987 /init
parent5eaa5bc0813d7bf2e5c708281370983a9725c417 (diff)
downloadcore-ac7428b2f54aa7f5c489c887940f5b201c4546b0.tar.gz
core-ac7428b2f54aa7f5c489c887940f5b201c4546b0.tar.bz2
core-ac7428b2f54aa7f5c489c887940f5b201c4546b0.zip
init: fix subcontext SELinux strings
'object_r' is supposed to be simply 'r'. Test: boot sailfish with SELinux fully enabled and subcontexts enabled Change-Id: I7eb8b2dd18e66f23c09863e8961da339f72d25c5
Diffstat (limited to 'init')
-rw-r--r--init/subcontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/subcontext.cpp b/init/subcontext.cpp
index 1306c7ded..85da23734 100644
--- a/init/subcontext.cpp
+++ b/init/subcontext.cpp
@@ -40,8 +40,8 @@ using android::base::unique_fd;
namespace android {
namespace init {
-const std::string kInitContext = "u:object_r:init:s0";
-const std::string kVendorContext = "u:object_r:vendor_init:s0";
+const std::string kInitContext = "u:r:init:s0";
+const std::string kVendorContext = "u:r:vendor_init:s0";
namespace {