Lines Matching refs:trans
119 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone) in find_ucred_opt() argument
122 struct netbuf *abuf = (struct netbuf *)trans->xp_p2; in find_ucred_opt()
128 if (getpeerucred(trans->xp_fd, &uc) == 0) in find_ucred_opt()
178 if (getpeerucred(trans->xp_fd, &uc) != 0) in find_ucred_opt()
195 __rpc_get_local_uid(SVCXPRT *trans, uid_t *uid_out) in __rpc_get_local_uid() argument
201 if (svc_type(trans) == SVC_DOOR) in __rpc_get_local_uid()
202 err = __svc_get_door_ucred(trans, uc) == FALSE; in __rpc_get_local_uid()
204 err = find_ucred_opt(trans, uc, B_TRUE); in __rpc_get_local_uid()
242 svc_getcallerucred(const SVCXPRT *trans, ucred_t **uc) in svc_getcallerucred() argument
254 if (svc_type(trans) == SVC_DOOR) in svc_getcallerucred()
255 err = __svc_get_door_ucred(trans, ucp) == FALSE; in svc_getcallerucred()
257 err = find_ucred_opt(trans, ucp, B_FALSE); in svc_getcallerucred()