svn commit: r244772 - stable/9/sys/kern

Rick Macklem rmacklem at FreeBSD.org
Fri Dec 28 14:06:50 UTC 2012


Author: rmacklem
Date: Fri Dec 28 14:06:49 2012
New Revision: 244772
URL: http://svnweb.freebsd.org/changeset/base/244772

Log:
  MFC: r244226
  The group list for a non-default export entry (a host/subnet one)
  was being copied from the wrong place. This patch fixes that.
  This could cause access failures for mapped users, when the group
  permissions were needed.
  
  PR:		147998
  Submitted by:	Christopher Key (cjk32 at cam.ac.uk)

Modified:
  stable/9/sys/kern/vfs_export.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/vfs_export.c
==============================================================================
--- stable/9/sys/kern/vfs_export.c	Fri Dec 28 10:58:03 2012	(r244771)
+++ stable/9/sys/kern/vfs_export.c	Fri Dec 28 14:06:49 2012	(r244772)
@@ -208,7 +208,7 @@ vfs_hang_addrlist(struct mount *mp, stru
 	np->netc_anon = crget();
 	np->netc_anon->cr_uid = argp->ex_anon.cr_uid;
 	crsetgroups(np->netc_anon, argp->ex_anon.cr_ngroups,
-	    np->netc_anon->cr_groups);
+	    argp->ex_anon.cr_groups);
 	np->netc_anon->cr_prison = &prison0;
 	prison_hold(np->netc_anon->cr_prison);
 	np->netc_numsecflavors = argp->ex_numsecflavors;


More information about the svn-src-stable-9 mailing list