Changeset View
Changeset View
Standalone View
Standalone View
sys/rpc/rpcsec_gss/svc_rpcsec_gss.c
Show First 20 Lines • Show All 472 Lines • ▼ Show 20 Lines | if (client->cl_cred) { | ||||
return (TRUE); | return (TRUE); | ||||
} | } | ||||
uc = &client->cl_ucred; | uc = &client->cl_ucred; | ||||
cr = client->cl_cred = crget(); | cr = client->cl_cred = crget(); | ||||
cr->cr_uid = cr->cr_ruid = cr->cr_svuid = uc->uid; | cr->cr_uid = cr->cr_ruid = cr->cr_svuid = uc->uid; | ||||
cr->cr_rgid = cr->cr_svgid = uc->gid; | cr->cr_rgid = cr->cr_svgid = uc->gid; | ||||
crsetgroups(cr, uc->gidlen, uc->gidlist); | crsetgroups(cr, uc->gidlen, uc->gidlist); | ||||
cr->cr_prison = &prison0; | cr->cr_prison = curthread->td_ucred->cr_prison; | ||||
prison_hold(cr->cr_prison); | prison_hold(cr->cr_prison); | ||||
*crp = crhold(cr); | *crp = crhold(cr); | ||||
return (TRUE); | return (TRUE); | ||||
} | } | ||||
int | int | ||||
rpc_gss_svc_max_data_length(struct svc_req *req, int max_tp_unit_len) | rpc_gss_svc_max_data_length(struct svc_req *req, int max_tp_unit_len) | ||||
▲ Show 20 Lines • Show All 1,090 Lines • Show Last 20 Lines |