Lines Matching defs:trans
121 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone)
124 struct netbuf *abuf = (struct netbuf *)trans->xp_p2;
130 if (getpeerucred(trans->xp_fd, &uc) == 0)
180 if (getpeerucred(trans->xp_fd, &uc) != 0)
197 __rpc_get_local_uid(SVCXPRT *trans, uid_t *uid_out)
203 if (svc_type(trans) == SVC_DOOR)
204 err = __svc_get_door_ucred(trans, uc) == FALSE;
206 err = find_ucred_opt(trans, uc, B_TRUE);
244 svc_getcallerucred(const SVCXPRT *trans, ucred_t **uc)
256 if (svc_type(trans) == SVC_DOOR)
257 err = __svc_get_door_ucred(trans, ucp) == FALSE;
259 err = find_ucred_opt(trans, ucp, B_FALSE);