Searched refs:callingContext (Results 1 – 4 of 4) sorted by relevance
/system/hwservicemanager/ |
D | AccessControl.cpp | 56 bool AccessControl::canAdd(const std::string& fqName, const CallingContext& callingContext) { in canAdd() argument 64 return checkPermission(callingContext, kPermissionAdd, checkName.c_str()); in canAdd() 67 bool AccessControl::canGet(const std::string& fqName, const CallingContext& callingContext) { in canGet() argument 75 return checkPermission(callingContext, kPermissionGet, checkName.c_str()); in canGet() 78 bool AccessControl::canList(const CallingContext& callingContext) { in canList() argument 79 return checkPermission(callingContext, mSeContext, kPermissionList, nullptr); in canList()
|
D | AccessControl.h | 37 bool canAdd(const std::string& fqName, const CallingContext& callingContext); 38 bool canGet(const std::string& fqName, const CallingContext& callingContext); 39 bool canList(const CallingContext& callingContext);
|
D | ServiceManager.cpp | 330 const AccessControl::CallingContext& callingContext) { in addImpl() argument 340 if (!mAcl.canAdd(fqName, callingContext)) { in addImpl() 393 std::make_unique<HidlService>(fqName, name, service, callingContext.pid)); in addImpl() 395 hidlService->setService(service, callingContext.pid); in addImpl() 645 auto callingContext = getBinderCallingContext(); in addWithChain() local 647 return addImpl(name, service, chain, callingContext); in addWithChain() 753 auto callingContext = getBinderCallingContext(); in registerPassthroughClient() local 755 if (!mAcl.canGet(fqName, callingContext)) { in registerPassthroughClient() 775 adding->registerPassthroughClient(callingContext.pid); in registerPassthroughClient() 778 service->registerPassthroughClient(callingContext.pid); in registerPassthroughClient()
|
D | ServiceManager.h | 93 const AccessControl::CallingContext& callingContext);
|