kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: nuno.m.g.martins@gmail.com (Nuno Martins)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how to detect a user who changed a particular file in Linux.
Date: Tue, 17 May 2011 12:05:32 +0100	[thread overview]
Message-ID: <BANLkTimkvcifWc451ajojAs_jbNsO_Q2ug@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimbqwKLgsEKa1jiXDL0O9RRTXq48g@mail.gmail.com>

On Tue, May 17, 2011 at 11:31 AM, V.Ravikumar
<ravikumar.vallabhu@gmail.com> wrote:
>
>
> On Mon, May 16, 2011 at 7:45 PM, Greg KH <greg@kroah.com> wrote:
>>
>> On Mon, May 16, 2011 at 03:02:10PM +0530, V.Ravikumar wrote:
>> >
>> > Hi all,
>> >
>> > (Note : I'm writing this mail to this kernel group as I did not find any
>> > suitable mechanism in application level for my below need).
>> >
>> > If a? file modified by some user then how can we detect that user who modified
>> > it.
>> >
>> > Linux audit was not suitable for my need.
>>
>> Why not? ?It should have showed you this exactly.
>>
>
> For my need, I have to asynchronously notify? if a given file was modified by some user using some program.
>
> As per my understanding for audit , one has to update system specific audit configuration files(say using some auditd related command line tools) with given? file and it is not suitable for my requirement.
>
> Is there any other ways apart from using SystemTap and auditd command line tools.
>
> Thanks for all your suggestions so far.

Have you considered using KProbes or tracepoints ?
For KProbes you do write some kernel module to monitor the function
you want. You have to be carefull not to try to monitor inlined
functions.
You could try to combine the use of KProbes with KThreads or
usermode-helper process.

It is just a thought.


>
> Regards,
> Ravikumar
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
Nuno Martins

      reply	other threads:[~2011-05-17 11:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-16  9:32 how to detect a user who changed a particular file in Linux V.Ravikumar
2011-05-16 10:42 ` Neependra Khare
2011-05-16 14:15 ` Greg KH
2011-05-17 10:31   ` V.Ravikumar
2011-05-17 11:05     ` Nuno Martins [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTimkvcifWc451ajojAs_jbNsO_Q2ug@mail.gmail.com \
    --to=nuno.m.g.martins@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).