Re: Just got an interesting project...

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ted Gould
Date:  
To: Main PLUG discussion list
Subject: Re: Just got an interesting project...
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/
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss