Lines Matching refs:uc
121 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone) in find_ucred_opt() argument
130 if (getpeerucred(trans->xp_fd, &uc) == 0) in find_ucred_opt()
146 (void) memcpy(uc, &opth[1], opth->len); in find_ucred_opt()
174 (void) memcpy(uc, &opt[1], in find_ucred_opt()
180 if (getpeerucred(trans->xp_fd, &uc) != 0) in find_ucred_opt()
190 return (ucred_getzoneid(uc) == myzone ? 0 : -1); in find_ucred_opt()
199 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_uid() local
204 err = __svc_get_door_ucred(trans, uc) == FALSE; in __rpc_get_local_uid()
206 err = find_ucred_opt(trans, uc, B_TRUE); in __rpc_get_local_uid()
210 *uid_out = ucred_geteuid(uc); in __rpc_get_local_uid()
220 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_cred() local
225 err = __svc_get_door_ucred(xprt, uc) == FALSE; in __rpc_get_local_cred()
227 err = find_ucred_opt(xprt, uc, B_TRUE); in __rpc_get_local_cred()
232 lcred->euid = ucred_geteuid(uc); in __rpc_get_local_cred()
233 lcred->egid = ucred_getegid(uc); in __rpc_get_local_cred()
234 lcred->ruid = ucred_getruid(uc); in __rpc_get_local_cred()
235 lcred->rgid = ucred_getrgid(uc); in __rpc_get_local_cred()
236 lcred->pid = ucred_getpid(uc); in __rpc_get_local_cred()
244 svc_getcallerucred(const SVCXPRT *trans, ucred_t **uc) in svc_getcallerucred() argument
246 ucred_t *ucp = *uc; in svc_getcallerucred()
262 if (*uc == NULL) in svc_getcallerucred()
267 if (*uc == NULL) in svc_getcallerucred()
268 *uc = ucp; in svc_getcallerucred()