Just got an interesting project...

Ted Gould ted at gould.cx
Thu Oct 5 08:58:44 MST 2006


On Thu, 5 Oct 2006, George Toft wrote:
> 1. Deleted files (say, qmail messages after pickup) are shredded upon
> deletion.  Immediately upon delete.  Since an application is performing
> the delete, I must assume "rm" is not being issued, so I can't
> substitute "shred" in its place.

Of course, I always recommend upgrading the applications with the feature 
and contributing the patch... but, assuming that is somehow impossible.

You might be able to do something similar to libtrash[1].  Libtrash gets 
preloaded for the application, and overwrites the remove function calls in 
glibc so that a trash can is implemented.  Basically all deletes become 
moves to the trash folder.  In the same way, you could make all deletes 
shred the files.

Disclaimer: preloading is a nasty hack.  Many people discourage it, and 
they're all right.  But, it may also solve all your problems :)

 		--Ted

[1] http://pages.stern.nyu.edu/~marriaga/software/libtrash/


More information about the PLUG-discuss mailing list