DragonFly BSD
DragonFly bugs List (threaded) for 2006-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cat /directory shows a (somewhat messy) list of files in a directory (even removed files)


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 26 Mar 2006 10:32:46 -0800 (PST)

:When you create some dir, create some files in it, then remove them
:and do a cat /path/to/that/dir you get a messed-up list of files along
:with the removed ones, in some situations this might be considered a
:security threat. The following script ilustrates what i mean:

    It's an artifact of the way UFS stores directories.  When you
    'rm' a file, the directory entry is simply marked invalid rather
    than destroyed.  The file's data is not destroyed either unless
    you overwrite it before deleting it (e.g. with rm -P).

						-Matt



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]