Subject: Re: UBC turns EACCESS into EFAULT (e.g.: with NFS)
To: None <tech-kern@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-kern
Date: 12/07/2003 20:16:06
--6Nae48J/T25AfBN4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
On Sun, Dec 07, 2003 at 10:20:21AM -0800, Chuck Silvers wrote:
> a solaris NFS client reading from a solaris NFS server allows
> reads from existing file descriptors even if the file has no
> read permission for anyone on the server.
now this sounds scary, but maybe I misunderstood.
> looking at the netbsd NFS code, our NFS server will allow reads and writes
> for the file owner regardless of the file's modes. in nfsrv_access():
[...]
> so our NFS client should just always use the file's owner in the creds
> for read and write RPCs. according to snoop, this is what solaris does
> as well.
file owner - or ID that opened the descriptor? "file owner" sounds like
too generous to me (but IANAL^HNFS protocol expert).
Regards,
-is
--=20
seal your e-mail: http://www.gnupg.org/
--6Nae48J/T25AfBN4
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQE/03x2PCRcZ/VMtk4RAoDkAJ9N2veYm4XhYDnM5wGC2EdNGL0rHQCbBUJO
EnVHbPBnw70za+bOdAEKFEU=
=EOzI
-----END PGP SIGNATURE-----
--6Nae48J/T25AfBN4--