cvs commit: src/sys/nfsserver nfs_srvsubs.c
cel at FreeBSD.org
Sun Apr 2 04:24:57 UTC 2006
cel 2006-04-02 04:24:57 UTC
FreeBSD src repository
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
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 at snowhite.cis.uoguelph.ca
Reviewed by: cel
Approved by: silby
MFC after: 1 week
Revision Changes Path
1.140 +6 -0 src/sys/nfsserver/nfs_srvsubs.c
More information about the cvs-src