<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 10/12/2011 10:50 AM, V.Ravikumar wrote:
<blockquote
cite="mid:CA+CftcHZZaaUkFZrsa9myX8RwYW7N4rymeZnU9NMpYOTE=nNWQ@mail.gmail.com"
type="cite">Other than fanotify , I can achieve my requirement
through a driver/module. If this can be achieved through a
driver/module please provide me inputs to start.<br>
<br>
Thanks,<br>
Ravi<br>
<br>
<div class="gmail_quote">On Wed, Sep 21, 2011 at 10:27 AM, rohan
puri <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:rohan.puri15@gmail.com">rohan.puri15@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">On Wed, Sep 21, 2011 at 10:03 AM,
V.Ravikumar <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:ravikumar.vallabhu@gmail.com"
target="_blank">ravikumar.vallabhu@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
Hi all,<br>
<br>
Is it possible to write a module/driver which notifies
file/directory change asynchronously along with user
name(or with uid) who modified it.<br>
<br>
inotify will do change notification but it will not
provide uid who modified/created the file.<br>
<br>
audit and inotify combination can work, but I'm
looking for a better option than this.<br>
<br>
Please help me. <br>
<br>
Thanks,<br>
Ravi<br>
<br>
</div>
</div>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a moz-do-not-send="true"
href="mailto:Kernelnewbies@kernelnewbies.org"
target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a moz-do-not-send="true"
href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies"
target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
</blockquote>
</div>
You can have a look at fanotify.<br>
<br>
Refer <a moz-do-not-send="true"
href="http://lwn.net/Articles/339253/" target="_blank">http://lwn.net/Articles/339253/</a><br>
<br>
Regards,<br>
<font color="#888888">Rohan Puri<br>
</font></blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kernelnewbies mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
</blockquote>
Hi Ravi,<br>
As mentioned in the article, you can start looking at fsnotify code
in the kernel. What we need is like something inserted between the
VFS Layer and the filesystem driver which will tell you what is
going on.<br>
<br>
Regards,<br>
Abhijit Pawar<br>
</body>
</html>