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 | 35 bool canAdd(const std::string& fqName, const CallingContext& callingContext); 36 bool canGet(const std::string& fqName, const CallingContext& callingContext); 37 bool canList(const CallingContext& callingContext);
|
D | ServiceManager.cpp | 320 const AccessControl::CallingContext& callingContext) { in addImpl() argument 330 if (!mAcl.canAdd(fqName, callingContext)) { in addImpl() 383 std::make_unique<HidlService>(fqName, name, service, callingContext.pid)); in addImpl() 385 hidlService->setService(service, callingContext.pid); in addImpl() 631 auto callingContext = getBinderCallingContext(); in addWithChain() local 633 return addImpl(name, service, chain, callingContext); in addWithChain() 741 auto callingContext = getBinderCallingContext(); in registerPassthroughClient() local 743 if (!mAcl.canGet(fqName, callingContext)) { in registerPassthroughClient() 763 adding->registerPassthroughClient(callingContext.pid); in registerPassthroughClient() 766 service->registerPassthroughClient(callingContext.pid); in registerPassthroughClient()
|
D | ServiceManager.h | 94 const AccessControl::CallingContext& callingContext);
|