From owner-freebsd-stable@FreeBSD.ORG Fri Jan 27 22:28:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5AC416A420 for ; Fri, 27 Jan 2006 22:28:12 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35BEC43D46 for ; Fri, 27 Jan 2006 22:28:11 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp208-69.lns1.adl2.internode.on.net [203.122.208.69]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k0RMS9s4037330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Jan 2006 08:58:09 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Sat, 28 Jan 2006 08:57:57 +1030 User-Agent: KMail/1.9.1 References: <200601272101.k0RL1JB09430@green-dome.village.org> In-Reply-To: <200601272101.k0RL1JB09430@green-dome.village.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6432752.d1Zlt9rtjo"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601280858.05260.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.54 on 203.31.81.10 Cc: dlm-fb@weaselfish.com Subject: Re: [5.4] mode bits changed by close(2) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 22:28:12 -0000 --nextPart6432752.d1Zlt9rtjo Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 28 January 2006 07:31, dlm-fb@weaselfish.com wrote: > A demonstration program is included below. I've verified this on a > fairly recently 5.4 client system, with both Linux and FBSD 5.4 NFS > servers. I don't have 6 or -current available to me at the moment. > There's the obvious work-around of doing a chmod() after the close, > but that has security implications. I tested it on a 6.0 server with a -current client.. [inchoate 8:55] /remotehome/darius >~/test ./foo Initial permissions: 0644 After write: 04711 After close: 0711 :( I also get the same result with a loopback NFS mount on -current. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart6432752.d1Zlt9rtjo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD4DBQBD2p515ZPcIHs/zowRAnAuAKCSeWzzwmtbmJ2kMIWnUtUMkZA7QgCYorTR KapVV8JGDoTTOp8ayJn/5Q== =KcLZ -----END PGP SIGNATURE----- --nextPart6432752.d1Zlt9rtjo--