From owner-freebsd-security Tue Jun 6 8: 0:49 2000 Delivered-To: freebsd-security@freebsd.org Received: from testbed.baileylink.net (testbed.baileylink.net [63.71.213.24]) by hub.freebsd.org (Postfix) with ESMTP id E135A37BA54 for ; Tue, 6 Jun 2000 08:00:44 -0700 (PDT) (envelope-from brad@testbed.baileylink.net) Received: (from brad@localhost) by testbed.baileylink.net (8.9.3/8.9.3) id KAA64938 for freebsd-security@FreeBSD.ORG; Tue, 6 Jun 2000 10:01:20 -0500 (CDT) (envelope-from brad) Date: Tue, 6 Jun 2000 10:01:19 -0500 From: Brad Guillory To: freebsd-security@FreeBSD.ORG Subject: Re: FreeBSDDEATH.c.txt (mmap dirty page no check bug) Message-ID: <20000606100119.B56528@baileylink.net> References: <20000606141000.H36228@vuurwerk.nl> <200006061440.HAA93503@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200006061440.HAA93503@apollo.backplane.com>; from dillon@apollo.backplane.com on Tue, Jun 06, 2000 at 07:40:41AM -0700 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I would suggest checking a file's atime over mtime. Of course this will not work if you visit every file on a periodic basis (tar, grep whatever). BMG On Tue, Jun 06, 2000 at 07:40:41AM -0700, Matthew Dillon wrote: > > :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 -- __O | Information wants to be free! | __O Bike _-\<,_ | FreeBSD:The Power to Serve (easily) | _-\<,_ to (_)/ (_) | OpenBSD:The Power to Serve (securely) | (_)/ (_) Work To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message