<br><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 11:30 AM, Abhijit Pawar <span dir="ltr">&lt;<a href="mailto:apawar.linux@gmail.com">apawar.linux@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div></div><div class="h5">
    On 10/12/2011 10:50 AM, V.Ravikumar wrote:
    <blockquote 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">&lt;<a href="mailto:rohan.puri15@gmail.com" target="_blank">rohan.puri15@gmail.com</a>&gt;</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>On Wed, Sep 21, 2011 at 10:03 AM,
                V.Ravikumar <span dir="ltr">&lt;<a href="mailto:ravikumar.vallabhu@gmail.com" target="_blank">ravikumar.vallabhu@gmail.com</a>&gt;</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>
                  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&#39;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 href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
              <a 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 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></fieldset>
      <br>
      <pre>_______________________________________________
Kernelnewbies mailing list
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
    </blockquote></div></div>
    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><font color="#888888">
    Abhijit Pawar<br></font></div></blockquote><div><br>Thank you Abhijit for your response.<br><br>Previously I had gone through the inotify code (ie fsnotify). What I&#39;ve observed is, there are inotify patches <b>(with fsnotify_ prefix )</b> in every file I/O system calls implementation. So what I understood is we can not achieve file change notification without patching the existing kernel source code. ie I can not achieve this using a simple device driver kind of mechanism.<br>
<br>Please correct me if I&#39;m wrong.<br><br>Regards,<br>Ravi<br></div></div><br>