Subject: NFS vs kauth_cred_setgroups() (Re: CVS commit: src/sys)
To: None <>
From: Geoff Wing <>
List: current-users
Date: 07/06/2007 13:50:16
On Sunday 2007-07-01 01:26 +1000, David Laight output:
:Module Name:	src
:Committed By:	dsl
:Date:		Sat Jun 30 15:27:03 UTC 2007
:Modified Files:
:	src/sys/miscfs/portal: portal_vnops.c
:	src/sys/miscfs/umapfs: umap_subr.c
:	src/sys/nfs: nfs_socket.c
:Log Message:
:Updates for changes prototype of kauth_cred_set/getgroups().
:cvs rdiff -r1.70 -r1.71 src/sys/miscfs/portal/portal_vnops.c
:cvs rdiff -r1.24 -r1.25 src/sys/miscfs/umapfs/umap_subr.c
:cvs rdiff -r1.158 -r1.159 src/sys/nfs/nfs_socket.c

I had a problem with NFS mounts not allowing me access
using group membership/permissions which I traced to
kauth_cred_setgroups(..., UIO_SYSSPACE) in nfs_getreq()
returning EFAULT

Maybe kauth_cred_[gs]etgroups needs an extra mode to
use kcopy(), or change the nfs_getreq() call to use
UIO_USERSPACE, or something more complicated.