From owner-freebsd-security Mon Aug 4 11:50:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA19903 for security-outgoing; Mon, 4 Aug 1997 11:50:44 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA19897 for ; Mon, 4 Aug 1997 11:50:41 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id EAA10329; Tue, 5 Aug 1997 04:49:53 +1000 Date: Tue, 5 Aug 1997 04:49:53 +1000 From: Bruce Evans Message-Id: <199708041849.EAA10329@godzilla.zeta.org.au> To: bde@zeta.org.au, sef@Kithrup.COM, tqbf@enteract.com Subject: Re: Proposed alternate patch for the rfork vulnerability Cc: security@FreeBSD.ORG Sender: owner-freebsd-security@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Note that exit closes file descriptors. So I guess exit should close >all file descriptors for all processes, huh? Only completely shared ones :-). My test program had its stderr closed when the (non-execed) child process exited. All descriptors get closed. Cooperating processes with completely shared descriptors need to handle this somehow if one of them exits and others want to keep running. Exec doesn't really affect the problem - processes can still cooperate after exec. Bruce