diff options
| author | 2019-10-07 13:08:35 -0700 | |
|---|---|---|
| committer | 2019-10-07 13:08:35 -0700 | |
| commit | ada7c21dc4989b068fac60871841cad8f3bf5d9c (patch) | |
| tree | 6b5ab3ba59f1fc61be5ba206c690e4e7d69ea9a4 | |
| parent | 2c00618e99105f923577d5315e53483130b83c11 (diff) | |
| parent | 3863c0ef462adff8bd9c229baf11ca9bcf1ff139 (diff) | |
Merge "servicemanager: lookup service labels using "service" backend" am: 9ada1719ba am: dcf4a67e94
am: 3863c0ef46
Change-Id: Ieb90eb825641f49d21c28119cd2959064e58cb9b
| -rw-r--r-- | cmds/servicemanager/Access.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/servicemanager/Access.cpp b/cmds/servicemanager/Access.cpp index 606477fee7..b7e520f2f1 100644 --- a/cmds/servicemanager/Access.cpp +++ b/cmds/servicemanager/Access.cpp @@ -137,7 +137,7 @@ bool Access::actionAllowed(const CallingContext& sctx, const char* tctx, const c bool Access::actionAllowedFromLookup(const CallingContext& sctx, const std::string& name, const char *perm) { char *tctx = nullptr; - if (selabel_lookup(getSehandle(), &tctx, name.c_str(), 0) != 0) { + if (selabel_lookup(getSehandle(), &tctx, name.c_str(), SELABEL_CTX_ANDROID_SERVICE) != 0) { LOG(ERROR) << "SELinux: No match for " << name << " in service_contexts.\n"; return false; } |