misc/109354: /etc/periodic/daily/110.clean-tmps does not limit its operation to one file system

Jari Kirma kirma at cs.hut.fi
Tue Feb 20 09:50:02 UTC 2007


>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 at 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:


More information about the freebsd-bugs mailing list