diff options
| author | 2019-10-07 12:46:20 -0700 | |
|---|---|---|
| committer | 2019-10-07 12:46:20 -0700 | |
| commit | dcf4a67e94d7295d3053a4e07635faee00a960c9 (patch) | |
| tree | f60e3629e4141121938ac4d35203ea9714c3c993 | |
| parent | f6ba84ac39b745ad03390924c7167e499122d697 (diff) | |
| parent | 9ada1719baf97231621e1af762181d5bd5c13e5b (diff) | |
Merge "servicemanager: lookup service labels using "service" backend"
am: 9ada1719ba
Change-Id: I7731d9ca5e380f6f24b31862a654cac813e5f945
| -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; } |