From owner-cvs-all Thu Apr 18 20:17: 8 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 418FD37B41B; Thu, 18 Apr 2002 20:17:03 -0700 (PDT) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g3J3GlNH563264; Thu, 18 Apr 2002 23:16:47 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200204190309.g3J39tE69057@khavrinen.lcs.mit.edu> References: <200204190045.g3J0jUY59526@freefall.freebsd.org> <200204190309.g3J39tE69057@khavrinen.lcs.mit.edu> Date: Thu, 18 Apr 2002 23:16:45 -0400 To: Garrett Wollman , Jacques Vidrine From: Garance A Drosihn Subject: Re: cvs commit: src/sys/kern kern_descrip.c kern_exec.c src/sys/sys filedesc.h Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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 At 11:09 PM -0400 4/18/02, Garrett Wollman wrote: >< said: > > > When exec'ing a set[ug]id program, make sure that the stdio > > file descriptors (0, 1, 2) are allocated by opening /dev/null > > for any which are not already open. > ><>shudder<> > >This seems completely and utterly broken to me. I don't see how it would break anything, although I'm not sure why this is something that needs to be done for set[ug]id programs and not for others? Is this trying to avoid error conditions that would pull the rug out from under such a program "at a bad time"? Just wondering... -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message