[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LRH.2.00.1112231044360.21599@twin.jikos.cz>
Date: Fri, 23 Dec 2011 10:45:16 +0100 (CET)
From: Jiri Kosina <jkosina@...e.cz>
To: Wakko Warner <wakko@...mx.eu.org>
Cc: Gaurav Saxena <grvsaxena419@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: Intercepting system calls
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).
--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists