From: Steve Grubb <sgrubb@redhat.com>
To: Linux-audit@redhat.com, Anurag Aggarwal <anurag19aggarwal@gmail.com>
Subject: Re: Setting priority to auditd rule files
Date: Mon, 30 Jan 2023 11:51:41 -0500 [thread overview]
Message-ID: <12149638.O9o76ZdvQC@x2> (raw)
In-Reply-To: <CAPoNrtu5eH8aPWkRTK+GkgddF=f_SVF3Pfi+WuHMafFxSdGTgw@mail.gmail.com>
Hello,
On Monday, January 30, 2023 12:21:53 AM EST Anurag Aggarwal wrote:
> As per my understanding, currently auditd picks up rule files as per
> alphabetical order.
Auditd picks up the rules in /etc/audit/audit.rules That in turn is compiled
by augenrules which uses the order as given from "ls -v".
> Is there a way to force auditd to prioritize which rule file should be
> first read and applied, other than renaming it as 000-<app>.rules and
> hoping that customers don't have anything lexicographically smaller than
> this?
You can use "ls -v" to figure out how to make a rule that is ahead of 10-base-
config.rules. even 10-a.rule should go first. Or you can rename 10-base-
config.rules to be a higher number.
-Steve
--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-audit
prev parent reply other threads:[~2023-01-30 16:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 5:21 Setting priority to auditd rule files Anurag Aggarwal
2023-01-30 16:51 ` Steve Grubb [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=12149638.O9o76ZdvQC@x2 \
--to=sgrubb@redhat.com \
--cc=Linux-audit@redhat.com \
--cc=anurag19aggarwal@gmail.com \
/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 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.