On Jan 10, 2008 5:00 PM, Alfred Perlstein <[EMAIL PROTECTED]> wrote: > > * John Baldwin <[EMAIL PROTECTED]> [080110 15:33] wrote: > > jhb 2008-01-10 23:36:00 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/nfsclient nfs_socket.c > > Log: > > Pass curthread to various socket routines (socreate(), sobind(), and > > soconnect()) instead of &thread0 when establishing a connection to the NFS > > server. Otherwise inconsistent credentials may be used when setting up > > the NFS socket. > > I'm not sure, but I think this may be a regression, I seem to recall > that a long time ago it was switched to &thread0 because otherwise > certain operations can fail due to curthread not running as root.
That's my recollection too. For example, when nfs is configured to bind to a priviliged local port for making queries or connections, it had to be done as root. With tcp mounts, the connection can be dropped and a reconnect required at any time. -- Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] "All of this is for nothing if we don't go to the stars" - JMS/B5 _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"
