Re: System call hooking in 2.6 kernel..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 10, 2008 at 5:06 PM, ashish mahamuni <ashitpro@xxxxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux