Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2007 09:42:21 GMT
From:      Jari Kirma<kirma@cs.hut.fi>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/109354: /etc/periodic/daily/110.clean-tmps does not limit its operation to one file system
Message-ID:  <200702200942.l1K9gLwp012666@www.freebsd.org>
Resent-Message-ID: <200702200950.l1K9o2uc023408@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109354
>Category:       misc
>Synopsis:       /etc/periodic/daily/110.clean-tmps does not limit its operation to one file system
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 20 09:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jari Kirma
>Release:        6.2-PRERELEASE
>Organization:
Helsinki University of Technology
>Environment:
FreeBSD XXX.hut.fi 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #16: Mon Dec 18 16:05:02 EET 2006     root@XXX.hut.fi:/usr/obj/usr/src/sys/XXX  i386
>Description:
/etc/periodic/daily/110.clean-tmps doesn't limit its scope of its file system traversal to the file system whith traversal starting point, and it neither limits its traversal to local file systems, even when the starting point is in a local file system. This can result removal of files that haven't really occuplied space on the system as long as file timestamps indicate. Sensibility aside, this may cause very adverse effects if, for instance, a NFS file system is mounted under temporary directory even for a moment, and cleanup scripts comes around.
>How-To-Repeat:
Create files with old enough timestamps under a test file system, mount it under filesystem to be cleaned, and run /etc/periodic/daily/110.clean-tmps.
>Fix:
Documentation of find -x option is a bit obscure. Is it intended for this purpose? Another option is -fstype local, but that doesn't work on diskless systems as intended.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702200942.l1K9gLwp012666>