From owner-cvs-all Fri Apr 19 11: 8:48 2002 Delivered-To: cvs-all@freebsd.org Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 3916337B416; Fri, 19 Apr 2002 11:08:43 -0700 (PDT) Received: from madman.nectar.cc (madman.nectar.cc [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 2FAF710; Fri, 19 Apr 2002 13:08:43 -0500 (CDT) Received: from madman.nectar.cc (localhost [IPv6:::1]) by madman.nectar.cc (8.12.2/8.11.6) with ESMTP id g3JI8gVw095759; Fri, 19 Apr 2002 13:08:43 -0500 (CDT) (envelope-from nectar@madman.nectar.cc) Received: (from nectar@localhost) by madman.nectar.cc (8.12.2/8.12.2/Submit) id g3JI8gx6095750; Fri, 19 Apr 2002 13:08:42 -0500 (CDT) Date: Fri, 19 Apr 2002 13:08:42 -0500 From: "Jacques A. Vidrine" To: Garrett Wollman Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_descrip.c kern_exec.c src/sys/sys filedesc.h Message-ID: <20020419180842.GA54945@madman.nectar.cc> Mail-Followup-To: "Jacques A. Vidrine" , Garrett Wollman , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200204191445.g3JEjXSg095842@hak.lan.Awfulhak.org> <20020419153310.GD31829@madman.nectar.cc> <200204191748.g3JHmAZ76103@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200204191748.g3JHmAZ76103@khavrinen.lcs.mit.edu> User-Agent: Mutt/1.3.28i X-Url: http://www.nectar.cc/ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Apr 19, 2002 at 01:48:10PM -0400, Garrett Wollman wrote: > < said: > > > IEEE Std 1003.1-2001: > > ``The open() function shall return a file descriptor for the named file > > that is the lowest file descriptor not currently open for that > > process.'' > > Given that, I expect my request for interpretation to come back with a > statement that it is prohibited for the implementation to open file > descriptors on exec() which had been closed by the calling process. I should be surprised with any other resolution. In general, it would not be desirable behaviour. Nonetheless, slavish adherence to standards can take a back seat to utilitarian or security issues, and such is the case here. Do keep in mind that we are speaking of set[ug]id programs only, which are already handled specially in many ways. Cheers, -- Jacques A. Vidrine http://www.nectar.cc/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message