Set the prison in NFS anon and GSS SVC creds (as I indended to in r197581).

Reviewed by:	marcel
This commit is contained in:
Jamie Gritton 2009-09-28 18:55:29 +00:00
parent 2e92ac56dd
commit c408f06b5e

View File

@ -449,6 +449,8 @@ rpc_gss_svc_getcred(struct svc_req *req, struct ucred **crp, int *flavorp)
cr->cr_uid = cr->cr_ruid = cr->cr_svuid = uc->uid;
cr->cr_rgid = cr->cr_svgid = uc->gid;
crsetgroups(cr, uc->gidlen, uc->gidlist);
cr->cr_prison = &prison0;
prison_hold(cr->cr_prison);
*crp = crhold(cr);
return (TRUE);