Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Sycall Rules vs Watch Rules
@ 2023-09-06 15:56 Amjad Gabbar
  2023-09-06 19:58 ` Richard Guy Briggs
  0 siblings, 1 reply; 13+ messages in thread
From: Amjad Gabbar @ 2023-09-06 15:56 UTC (permalink / raw)
  To: linux-audit


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

Hi,

I have done some analysis and digging into how both the watch rules and
syscall rules are translated.

From my understanding, in terms of logging, both the below rules are
similar. There is no difference in either of the rules.

1. -w /etc -p wa -k ETC_WATCH

2. -a always,exit -F arch=b64 -S <all syscalls part of the write and attr
classes> -F dir=/etc  -F perm=wa -k ETC_WATCH

The write and attr classes consist of syscalls in
“include/asm-generic/audit_*.h“.

 The perm flag is needed in the second case for including open/openat
syscalls which are not a part of the write and attr syscall list.

I'd like to verify if what I mentioned earlier is accurate, and I have an
additional point but depends on whether this is accurate.

Ali

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

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

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

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

end of thread, other threads:[~2023-10-08 21:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-06 15:56 Sycall Rules vs Watch Rules Amjad Gabbar
2023-09-06 19:58 ` Richard Guy Briggs
2023-09-12 21:20   ` Amjad Gabbar
2023-09-15  6:00     ` Amjad Gabbar
2023-09-19 23:12     ` Steve Grubb
2023-09-20  0:26       ` Amjad Gabbar
2023-09-20 18:45         ` Steve Grubb
2023-09-20 23:33           ` Steve Grubb
2023-09-21 20:02             ` Amjad Gabbar
2023-09-28 15:53               ` Steve Grubb
2023-09-28 16:30                 ` Steve Grubb
2023-09-29 16:39                   ` Amjad Gabbar
2023-10-08  4:46                     ` Amjad Gabbar

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