Date: Mon, 27 Mar 2006 14:52:15 -0500 (EST) From: rick@snowhite.cis.uoguelph.ca To: fs@freebsd.org Subject: NFS server setattr bug Message-ID: <200603271952.OAA37107@snowhite.cis.uoguelph.ca>
next in thread | raw e-mail | index | archive | help
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. Sound reasonable? rick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603271952.OAA37107>