On Thu, 27 Apr 2006 15:05:11 +0200 Stef Bon <[EMAIL PROTECTED]> wrote:
> > What about LD_PRELOAD? You can use checkinstall to track created files > > and then simply attr them. > > I do not known this method. I guess there is a hint or something about > this I can read. Nope. You'd have to be an actual C programmer to implement this. You write a library that implements wrappers around the system calls such as open(2) and then you list that library in the environment variable LD_PRELOAD. The dynamic loader will then make your library get the system calls first. That way you can catch each and every instance of file creation, copying, moving, even if it is not done with /bin/mv and friends. There are already systems that use this for monitoring builds and installations. Gentoo for instance uses this technique to prevent build/install scripts from writing to the live filesystem. MSB -- A man without light need not fear darkness. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
