Set the prison in NFS anon and GSS SVC creds (as I indended to in r197581).
Reviewed by: marcel
This commit is contained in:
parent
2e92ac56dd
commit
c408f06b5e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user