svn commit: r245086 - stable/8/sys/kern

Rick Macklem rmacklem at FreeBSD.org
Sun Jan 6 01:11:46 UTC 2013


Author: rmacklem
Date: Sun Jan  6 01:11:45 2013
New Revision: 245086
URL: http://svnweb.freebsd.org/changeset/base/245086

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.
  
  Submitted by:	Christopher Key

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

Modified: stable/8/sys/kern/vfs_export.c
==============================================================================
--- stable/8/sys/kern/vfs_export.c	Sun Jan  6 01:01:57 2013	(r245085)
+++ stable/8/sys/kern/vfs_export.c	Sun Jan  6 01:11:45 2013	(r245086)
@@ -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-all mailing list