From: Steve Grubb <sgrubb@redhat.com>
To: Richard Guy Briggs <rgb@redhat.com>
Cc: linux-audit@redhat.com
Subject: Re: exclude filter action ignored?
Date: Mon, 16 May 2016 09:19:29 -0400 [thread overview]
Message-ID: <11175563.uHevLF1eMJ@x2> (raw)
In-Reply-To: <20160515203827.GB21780@madcap2.tricolour.ca>
On Sunday, May 15, 2016 04:38:27 PM Richard Guy Briggs wrote:
> Hi Steve,
>
> Can you confirm that the exclude filter action parameter is ignored?
The exclude filter was supposed to do only 1 thing, delete events. It was
needed to create a pure CAPP system back in the lspp days. There are things
like selinux which sends events whether you wanted them or not. For a pure
CAPP system you just tell it the msgtype of selinux events and then they are
gone. People found other uses later like getting rid of cron job pam messages.
But its always been used to remove events rather than trigger them.
> I can't find any evidence in the kernel or in userspace that the action
> value is actually honoured. In fact, looking at the manpage for
> auditctl(8), the wording of the action contradicts the intuitive meaning
> of that filter name. And as a matter of fact, I find discussion of it
> here:
> https://www.redhat.com/archives/linux-audit/2005-October/msg00020.html
>
>
> In auditctl, setopt() calls audit_rule_setup() which calls lookup_filter()
> and lookup_action(), then calls audit_rule_fieldpair_data() none of which
> check when parsing the AUDIT_MSGTYPE field.
>
> During rule addition, in kernel/auditfilter.c:audit_rule_change() and
> callees AUDIT_FILTER_TYPE is never checked for either action but simply
> copied.
>
> When called from audit_log_start() in
> kernel/auditfilter.c:audit_filter_type(), the state is never checked, so
> either AUDIT_NEVER or AUDIT_ALWAYS actions gives the same result which
> is to ignore that message type.
Which should delete the event from being emitted.
-Steve
next prev parent reply other threads:[~2016-05-16 13:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-15 20:38 exclude filter action ignored? Richard Guy Briggs
2016-05-16 13:19 ` Steve Grubb [this message]
2016-05-16 15:44 ` Richard Guy Briggs
2016-05-16 16:01 ` Steve Grubb
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=11175563.uHevLF1eMJ@x2 \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=rgb@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox