Searched refs:callingContext (Results 1 – 4 of 4) sorted by relevance
/aosp12/system/hwservicemanager/ |
H A 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()
|
H A 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);
|
H A D | ServiceManager.cpp | 340 const AccessControl::CallingContext& callingContext) { in addImpl() argument 350 if (!mAcl.canAdd(fqName, callingContext)) { in addImpl() 440 std::make_unique<HidlService>(fqName, name, service, callingContext.pid)); in addImpl() 442 hidlService->setService(service, callingContext.pid); in addImpl() 692 auto callingContext = getBinderCallingContext(); in addWithChain() local 694 return addImpl(name, service, chain, callingContext); in addWithChain() 800 auto callingContext = getBinderCallingContext(); in registerPassthroughClient() local 802 if (!mAcl.canGet(fqName, callingContext)) { in registerPassthroughClient() 822 adding->registerPassthroughClient(callingContext.pid); in registerPassthroughClient() 825 service->registerPassthroughClient(callingContext.pid); in registerPassthroughClient()
|
H A D | ServiceManager.h | 93 const AccessControl::CallingContext& callingContext);
|