From owner-freebsd-security Tue Jun 6 7:40:49 2000 Delivered-To: freebsd-security@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 7A08837B52C for ; Tue, 6 Jun 2000 07:40:45 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id HAA93503; Tue, 6 Jun 2000 07:40:41 -0700 (PDT) (envelope-from dillon) Date: Tue, 6 Jun 2000 07:40:41 -0700 (PDT) From: Matthew Dillon Message-Id: <200006061440.HAA93503@apollo.backplane.com> To: Peter van Dijk Cc: freebsd-security@FreeBSD.ORG Subject: Re: FreeBSDDEATH.c.txt (mmap dirty page no check bug) References: <20000606141000.H36228@vuurwerk.nl> Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org :On Tue, Jun 06, 2000 at 10:38:37PM +1200, Andrew McNaughton wrote: :[snip] :> :> Absence of /tmp is a pretty major oversight for any machine. Putting it :> on the root partition is doubly so. If there's no sepsrate partition it :> should at least be an alias to /var/tmp or something of the sort. : :To /usr/tmp, please, then. : :/var/tmp is designed to be not cleaned out on reboots. : :Greetz, Peter. It should be /var/tmp. It's bad enough that some bozo created two standard locations for temporary files (/tmp and /var/tmp), we don't want to add a third. Frankly, it makes no sense to have more then one. In every machine I've ever configured for the last umpteen years I've created a /var/tmp partition and softlinked /tmp to it. Programs make no real distinction in functionality except perhaps a couple of minor ones in our tree. You wind up having to put tonnes of space in both anyway so they might as well be the same. It just doesn't make any sense to separate them out nor does it make sense to introduce yet another 'standard' location for tmp. The cron job should generally just use a find -mtime ... -delete for /tmp rather then attempt to wipe it entirely. There should be no distinction in functionality. So it should be /var/tmp with /tmp a softlink. Works just dandy even in single-user mode (you create a degenerate /var/tmp in / so you get a working tmp even if /var is not mounted). -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message