All of lore.kernel.org
 help / color / mirror / Atom feed
* Auditing file access by application
@ 2017-06-12 14:20 John Petrini
  2017-06-12 15:05 ` Richard Guy Briggs
  2017-06-12 15:52 ` Steve Grubb
  0 siblings, 2 replies; 6+ messages in thread
From: John Petrini @ 2017-06-12 14:20 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 1030 bytes --]

Hello,

We have a need to monitor voicemail directories for any sort of access.
Basically there is only one application that should be accessing the files.
If anything else accesses the files we need to log that.

We setup the following to accomplish this but it's doesn't quite do what we
want.

-a always,exit -S all -F dir=/path/to/voicemail -F perm=rwxa -F
auid!=voicemail_user -F key=voicemail_watch

voicemail_user is the user that initially starts the process. The problem
arises when someone logged in under a different account restarts the
process. From that point forward every time the application accesses that
directory it results in a log message.

We need other users to be able to be able to log in and restart the process
so our method here really doesn't work. Is there a way to log only if a
different application access the directory rather than basing the audit on
user?

I was hoping to us something like -F exe!="/path/to/application" but it
looks like this is not supported.

Thank You,

___

John Petrini

[-- Attachment #1.2: Type: text/html, Size: 1847 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-12 16:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12 14:20 Auditing file access by application John Petrini
2017-06-12 15:05 ` Richard Guy Briggs
2017-06-12 15:31   ` John Petrini
2017-06-12 15:49     ` Richard Guy Briggs
2017-06-12 15:52 ` Steve Grubb
2017-06-12 16:34   ` John Petrini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.