On Mon, Nov 10, 2008 at 5:06 PM, ashish mahamuni <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I am trying to write a module which will log the user who deleted the file...
> So, I am thinking of hooking the unlink system call...
> Which is the best way to achieve this?
> Is it possible in 2.6 kernel?
>

How about inotify?

http://www.ibm.com/developerworks/linux/library/l-ubuntu-inotify/index.html

The advantage is that u don't need to write any kernel
stuff.....everything is done at userspace....and therefore much safer
and reliable.

-- 
Regards,
Peter Teoh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to