Lines Matching defs:trans
118 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone)
121 struct netbuf *abuf = (struct netbuf *)trans->xp_p2;
127 if (getpeerucred(trans->xp_fd, &uc) == 0)
176 if (getpeerucred(trans->xp_fd, &uc) != 0)
193 __rpc_get_local_uid(SVCXPRT *trans, uid_t *uid_out)
199 if (svc_type(trans) == SVC_DOOR)
200 err = __svc_get_door_ucred(trans, uc) == FALSE;
202 err = find_ucred_opt(trans, uc, B_TRUE);
240 svc_getcallerucred(const SVCXPRT *trans, ucred_t **uc)
252 if (svc_type(trans) == SVC_DOOR)
253 err = __svc_get_door_ucred(trans, ucp) == FALSE;
255 err = find_ucred_opt(trans, ucp, B_FALSE);