Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2013 01:11:46 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r245086 - stable/8/sys/kern
Message-ID:  <201301060111.r061BkJd037478@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301060111.r061BkJd037478>