From owner-cvs-all Thu Jan 20 16:15:41 2000 Delivered-To: cvs-all@freebsd.org Received: from awfulhak.org (dynamic-71.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.199]) by hub.freebsd.org (Postfix) with ESMTP id 7005D14C2B; Thu, 20 Jan 2000 16:15:33 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA11845; Fri, 21 Jan 2000 00:15:32 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA03252; Fri, 21 Jan 2000 00:15:31 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200001210015.AAA03252@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Warner Losh Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: cvs commit: src/sys/sys filedesc.h src/sys/kern kern_descrip.c kern_exec.c In-Reply-To: Message from Warner Losh of "Wed, 19 Jan 2000 23:12:53 PST." <200001200712.XAA86651@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 21 Jan 2000 00:15:31 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > imp 2000/01/19 23:12:53 PST > > Modified files: > sys/sys filedesc.h > sys/kern kern_descrip.c kern_exec.c > Log: > When we are execing a setugid program, and we have a procfs filesystem > file open in one of the special file descriptors (0, 1, or 2), close > it before completing the exec. > > Submitted by: nergal@idea.avet.com.pl > Constructive comments: deraadt@openbsd.org, sef, peter, jkh > > Revision Changes Path > 1.19 +2 -1 src/sys/sys/filedesc.h > 1.78 +60 -1 src/sys/kern/kern_descrip.c > 1.107 +2 -1 src/sys/kern/kern_exec.c Ok, I'll bite. Why ? -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message