Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Auditing write syscall
@ 2019-05-13 19:43 Ondra N.
  2019-05-14 13:55 ` Steve Grubb
  0 siblings, 1 reply; 4+ messages in thread
From: Ondra N. @ 2019-05-13 19:43 UTC (permalink / raw)
  To: linux-audit


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

Hello,

I would like to ask a question about auditing write syscalls.  I am trying
to monitor all filesystem changes in a specific directory and process the
changes in near real time - audispd, was very helpful with that.

What concerns me is what if a filedescriptor is kept open for long periods
of time and written to once in a while? Only the open syscall is logged
when using a rule like this one.

auditctl -w /tmp/rnd_pop -p wa -k test_key

I was thinking that maybe being more explicit about what I want to do could
help like setting up a rule like this one.

auditctl -a always,exit -F dir=/tmp/rnd_pop -F perm=w -F succes=1 -k
test_key

But it doesnt seem to work for me, I guess I cannot filter write syscall by
directory because nothing ever shows up in the audit.log with a rule like
this.

What is the intended way to achieve logging of write syscalls in specific
directory, am i missing something? Should I check myself if the file is
still open when event is being processed and act accordingly?


Best regards,

Ondrej

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

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



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

end of thread, other threads:[~2019-05-23 22:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-13 19:43 Auditing write syscall Ondra N.
2019-05-14 13:55 ` Steve Grubb
2019-05-23 21:10   ` Richard Guy Briggs
2019-05-23 22:29     ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox