diff options
author | jamie <jamie@FreeBSD.org> | 2009-10-01 13:11:45 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2009-10-01 13:11:45 +0000 |
commit | bee4d5ff2bcbe7fc7560193231b8503d327629c1 (patch) | |
tree | e059222d504826987ca9fbec58a7a87b7dede22b /sys/rpc/rpcsec_gss | |
parent | 05c6929c66e6fa7d7d8229d117ccc2cda3df4027 (diff) | |
download | FreeBSD-src-bee4d5ff2bcbe7fc7560193231b8503d327629c1.zip FreeBSD-src-bee4d5ff2bcbe7fc7560193231b8503d327629c1.tar.gz |
MFC r197581, r197583, r197584:
Set the prison in NFS anon and GSS SVC creds.
Reviewed by: marcel
Approved by: re (kib)
Diffstat (limited to 'sys/rpc/rpcsec_gss')
-rw-r--r-- | sys/rpc/rpcsec_gss/svc_rpcsec_gss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c b/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c index 2e7f3c8..b6e328e 100644 --- a/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c +++ b/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c @@ -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); |