freebsd-dev/sys/nfsserver
Chuck Lever 7d8a7e19c7 rick says:
The following bug was just identified in OpenBSD and it looks like the same
bug exists in the other BSDen NFS servers.

A Linux client (don't know which version, but you can look at
	http://bugzilla.kernel.org/show_bug.cgi?id=6256)
does a Setattr of mtime to the server's time, where the file is mode 0664 and
the client user has group access (ie. caller is not the file owner).

The BSD servers fail the Setattr with EPERM, since the VA_UTIMES_NULL flag
isn't set before doing the VOP_SETATTR.

It seems to me that this should be allowed, since it is allowed for a local
utimes(2). If so, the fix is to set VA_UTIMES_NULL for the
"set-time-to-server-time" cases of setting atime and/or mtime.

Submitted by:	rick@snowhite.cis.uoguelph.ca
Reviewed by:	cel
Approved by:	silby
MFC after:	1 week
2006-04-02 04:24:57 +00:00
..
nfs_serv.c - Release the references acquired by VOP_GETWRITEMOUNT and vfs_getvfs(). 2006-03-31 03:54:20 +00:00
nfs_srvcache.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs_srvsock.c When parsing an RPC request in nfsrv_dorec(), KASSERT that there 2006-03-08 20:21:15 +00:00
nfs_srvsubs.c rick says: 2006-04-02 04:24:57 +00:00
nfs_syscalls.c Manage the ucred for the NFS server using the crget/crfree API defined in 2006-01-28 19:24:40 +00:00
nfs.h Manage the ucred for the NFS server using the crget/crfree API defined in 2006-01-28 19:24:40 +00:00
nfsm_subs.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfsrvcache.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfsrvstats.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00