All of lore.kernel.org
 help / color / mirror / Atom feed
* Replacing file watch (-w) with syscall
@ 2021-05-28 12:34 Andreas Hasenack
  2021-05-28 15:26 ` Steve Grubb
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Hasenack @ 2021-05-28 12:34 UTC (permalink / raw)
  To: Linux-audit

Hi,

I wanted to place a file watch on a file, but with an auid filter,
i.e., I didn't want to log accesses done by a particular user. That is
not possible with -w, so we have to use a syscall rule.

The manpage has many examples of such conversions, so here is what I would use:

-a always,exit -F auid!=andreas -F path=/etc/myfile -F perm=wa -F
key=myfile-changed

No syscall, because the manpage also says this for the perm filter:
"You can use this without specifying a syscall and the kernel will
select the syscalls that satisfy the permissions being requested."

Right after loading that rule, though, auditctl shows it with "-S all":

-a always,exit -S all -F auid!=1000 -F path=/etc/myfile -F perm=wa -F
key=myfile-changed

That had me a bit worried, in terms of performance impact, if "-S all"
is true and all syscalls will be checked. Is this a terrible rule?

--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-audit


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

end of thread, other threads:[~2021-05-28 16:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-28 12:34 Replacing file watch (-w) with syscall Andreas Hasenack
2021-05-28 15:26 ` Steve Grubb
2021-05-28 15:55   ` Richard Guy Briggs
2021-05-28 16:25     ` Andreas Hasenack

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.