lkml.org 
[lkml]   [2011]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Intercepting system calls
Jiri Kosina wrote:
> On Thu, 22 Dec 2011, Wakko Warner wrote:
>
> > > Oh. I will not do it then, could you suggest me something so that I
> > > could prevent unlink on some file say using kernel support. I want to
> > > save file on unlink how could I do that without kernel support, or how
> > > could I do that using a kernel module.
> >
> > I wrote a library that can be loaded in userspace that does this. It's not
> > very polished, but it works for me. I use it for rsync when I want files
> > "deleted" but not from the filesystem. It creates a .deleted directory in
> > the $PWD.
>
> I don't see a way how library could cover any arbitrary userspace process
> issuing unlink() (consider statically linked binaries, for starters).

It cannot. I already understand that static binaries cannot be trapped like
this.

--
Microsoft has beaten Volkswagen's world record. Volkswagen only created 22
million bugs.


\
 
 \ /
  Last update: 2011-12-23 16:13    [W:0.045 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site