• Home
  • Raw
  • Download

Lines Matching refs:identity

49 static BOOL Initialize(Service *service, Identity identity);
55 …tFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcIdentity *identity);
56 …tFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcIdentity *identity);
58 static int RegisterSamgrEndpoint(const IpcContext* context, SvcIdentity* identity);
59 static void TransmitPolicy(int ret, const SvcIdentity* identity, IpcIo *reply,
116 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
119 server->identity = identity; in Initialize()
121 SAMGR_AddRouter(server->samgr, &saName, &server->identity, GET_IUNKNOWN(*server)); in Initialize()
171 … SvcIdentity identity = {(uint32)INVALID_INDEX, (uint32)INVALID_INDEX, (uint32)INVALID_INDEX}; in ProcEndpoint() local
172 (void)GenServiceHandle(&identity, GetCallingTid(origin)); in ProcEndpoint()
179 identity.handle = data->target.handle; in ProcEndpoint()
180 BinderAcquire(g_server.samgr->context, identity.handle); in ProcEndpoint()
185 handle.handle = identity.handle; in ProcEndpoint()
188 (void)UnregisterDeathCallback(identity, handle.deadId); in ProcEndpoint()
189 …(void)RegisterDeathCallback(server->samgr->context, identity, OnEndpointExit, (void*)((uintptr_t)p… in ProcEndpoint()
198 …utFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcIdentity *identity) in ProcPutFeature() argument
218 *identity = SASTORA_Find(&server->store, service, feature); in ProcPutFeature()
219 if (identity->handle != INVALID_INDEX && identity->handle != handle.handle) { in ProcPutFeature()
224 identity->token = IpcIoPopUint32(req); in ProcPutFeature()
225 identity->handle = handle.handle; in ProcPutFeature()
240 ret = SASTORA_Save(&server->store, service, feature, identity); in ProcPutFeature()
243 service, feature, pid, identity->handle, identity->token, ret); in ProcPutFeature()
244 TransmitPolicy(ret, identity, reply, policy, policyNum); in ProcPutFeature()
249 static void TransmitPolicy(int ret, const SvcIdentity* identity, IpcIo *reply, in TransmitPolicy() argument
252 if (identity == NULL || reply == NULL || policy == NULL) { in TransmitPolicy()
261 IpcIoPushSvc(reply, identity); in TransmitPolicy()
294 …etFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcIdentity *identity) in ProcGetFeature() argument
304 *identity = SASTORA_Find(&server->store, service, feature); in ProcGetFeature()
305 if (identity->handle == INVALID_INDEX) { in ProcGetFeature()
308 service, feature, identity->handle, identity->token, EC_NOSERVICE); in ProcGetFeature()
312 PidHandle providerPid = SASTORA_FindPidHandleByIpcHandle(&server->store, identity->handle); in ProcGetFeature()
316 service, feature, identity->handle, identity->token, EC_FAILURE); in ProcGetFeature()
330 …int32 ret = (isAuth == EC_SUCCESS) ? AddServiceAccess(*identity, GetCallingTid(origin)) : EC_PERMI… in ProcGetFeature()
332 service, feature, identity->handle, identity->token, ret); in ProcGetFeature()
352 SvcIdentity identity = {INVALID_INDEX, INVALID_INDEX, INVALID_INDEX}; in ProcFeature() local
354 ret = ProcPutFeature(server, origin, req, reply, &identity); in ProcFeature()
361 ret = ProcGetFeature(server, origin, req, reply, &identity); in ProcFeature()
364 IpcIoPushSvc(reply, &identity); in ProcFeature()
504 static int RegisterSamgrEndpoint(const IpcContext* context, SvcIdentity* identity) in RegisterSamgrEndpoint() argument
512 identity->handle = SAMGR_HANDLE; in RegisterSamgrEndpoint()
513 identity->token = SAMGR_TOKEN; in RegisterSamgrEndpoint()
514 identity->cookie = SAMGR_COOKIE; in RegisterSamgrEndpoint()
531 ret = SAMGR_SendRequest(&g_server.identity, &request, NULL); in OnEndpointExit()