Lines Matching refs:origin
41 typedef int(*ProcFunc)(SamgrServer *server, int32 option, void *origin, IpcIo *req, IpcIo *reply);
52 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply);
54 static int ProcEndpoint(SamgrServer *server, int32 option, void *origin, IpcIo *req, IpcIo *reply);
55 static int32 ProcPutFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcI…
56 static int32 ProcGetFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcI…
57 static int ProcFeature(SamgrServer *server, int32 option, void *origin, IpcIo *req, IpcIo *reply);
63 static int ProcSysCap(SamgrServer *server, int32 option, void *origin, IpcIo *req, IpcIo *reply);
104 static BOOL CanRequest(const void *origin) in CanRequest() argument
106 pid_t uid = GetCallingUid(origin); in CanRequest()
147 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
156 return g_functions[resource](server, option, origin, req, reply); in Invoke()
159 static int ProcEndpoint(SamgrServer *server, int32 option, void *origin, IpcIo *req, IpcIo *reply) in ProcEndpoint() argument
166 pid_t pid = GetCallingPid(origin); in ProcEndpoint()
172 (void)GenServiceHandle(&identity, GetCallingTid(origin)); in ProcEndpoint()
174 IpcMsg* data = (IpcMsg*)origin; in ProcEndpoint()
184 handle.uid = GetCallingUid(origin); in ProcEndpoint()
198 static int32 ProcPutFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcI… in ProcPutFeature() argument
206 pid_t pid = GetCallingPid(origin); in ProcPutFeature()
207 uid_t uid = GetCallingUid(origin); in ProcPutFeature()
294 static int32 ProcGetFeature(SamgrServer *server, const void *origin, IpcIo *req, IpcIo *reply, SvcI… in ProcGetFeature() argument
322 .consumerPid = GetCallingPid(origin), in ProcGetFeature()
323 .consumerUid = GetCallingUid(origin), in ProcGetFeature()
330 …int32 ret = (isAuth == EC_SUCCESS) ? AddServiceAccess(*identity, GetCallingTid(origin)) : EC_PERMI… in ProcGetFeature()
336 static int ProcFeature(SamgrServer *server, int32 option, void *origin, IpcIo *req, IpcIo *reply) in ProcFeature() argument
354 ret = ProcPutFeature(server, origin, req, reply, &identity); in ProcFeature()
361 ret = ProcGetFeature(server, origin, req, reply, &identity); in ProcFeature()
474 static int ProcSysCap(SamgrServer *server, int32 option, void *origin, IpcIo *req, IpcIo *reply) in ProcSysCap() argument
476 if (CanRequest(origin) == FALSE) { in ProcSysCap()