From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: juro <juro.fit@gmail.com>, Miloslav Trmac <mitr@redhat.com>
Subject: Re: Reactive rules (from juro.fit@gmail.com)
Date: Mon, 24 Aug 2009 15:28:50 -0400 [thread overview]
Message-ID: <200908241528.50647.sgrubb@redhat.com> (raw)
In-Reply-To: <1056392541.1213981250665925854.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
On Wednesday 19 August 2009 03:12:05 am Miloslav Trmac wrote:
> I suggest that a change should be done in the kernel. The events
> are filtered in it so that there is no need parsing the messages
> sent to the auditd and this solution wouldn't cause any increase
> in the load of the system caused by auditing.
I suppose you could hook into the exclude filter and check events there.
> First of all, the syntax of the rules should be changed a bit to
> include reactive rules. It could look like this:
>
> rule1
> rule2 {
> rule2_1
> rule2_2
> }
> rule3
>
> When an event that rule2 watches for occurs, rule2_1 and rule2_2
> will be added/removed to/from the rule set.
You could also do matching based on a new field rather than change the syntax
of the rules. It could work like key field except its a number. The high bit
could determine if its add/delete.
> The change in the syntax means a change in auditctl.c. Also,
> struct audit_rule_data needs to be altered to include some flag
> that makes it possible to recognize between the types of rules
> when passed to the kernel.
The less changed in the kABI the better. It needs to stay backward/forward
compatible in different combinations of kernel and user space.
-Steve
prev parent reply other threads:[~2009-08-24 19:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a1e54a1c0908181508t7efd3b1aub920a4b6750ae74e@mail.gmail.com>
2009-08-19 7:12 ` Reactive rules (from juro.fit@gmail.com) Miloslav Trmac
2009-08-24 19:28 ` 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=200908241528.50647.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=juro.fit@gmail.com \
--cc=linux-audit@redhat.com \
--cc=mitr@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