Lazy start remove redundant log. am: 52fde2119d am: d20a0bbcdd am: 0fd475648c am: e9a195ad3c
am: 8541be0e72
Change-Id: I84bde7bb8bc6fc3f45135f8f1301e83343015001
diff --git a/ServiceManager.cpp b/ServiceManager.cpp
index 90b5dd8..6a9864f 100644
--- a/ServiceManager.cpp
+++ b/ServiceManager.cpp
@@ -306,6 +306,11 @@
auto pidcon = getBinderCallingContext();
+ if (!mAcl.canAdd(IBase::descriptor, pidcon)) {
+ LOG(ERROR) << "Missing permissions to add IBase";
+ return false;
+ }
+
auto ret = service->interfaceChain([&](const auto &interfaceChain) {
addSuccess = addImpl(name, service, interfaceChain, pidcon);
});