From: Darrel Goeddel <dgoeddel@TrustedCS.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>,
Amy Griffis <amy.griffis@hp.com>,
Dustin Kirkland <dustin.kirkland@us.ibm.com>,
Linux Audit Discussion <linux-audit@redhat.com>,
"selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>,
Steve Grubb <sgrubb@redhat.com>
Subject: Re: [PATCH] context based audit filtering (take 3)
Date: Thu, 23 Feb 2006 17:31:42 -0600 [thread overview]
Message-ID: <43FE45DE.1060503@trustedcs.com> (raw)
In-Reply-To: <1140620332.31467.226.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> On Tue, 2006-02-21 at 17:59 -0600, Darrel Goeddel wrote:
>
>>The updated version of Dustin's patch I referred to is below. The changes are
>>are follows:
>>
>>- printk a warning and ignore invalid selinux rules (but still hang on to them
>> so they may be activated with a later policy reload).
>
>
> Should this be a printk or an audit_log call?
Steve G had suggested syslogging it, so I went with the printk. What would
be more noticeable?
>>@@ -370,6 +410,14 @@ static int audit_compare_rule(struct aud
>> if (audit_compare_watch(a->watch, b->watch))
>> return 1;
>> break;
>>+ case AUDIT_SE_USER:
>>+ case AUDIT_SE_ROLE:
>>+ case AUDIT_SE_TYPE:
>>+ case AUDIT_SE_SEN:
>>+ case AUDIT_SE_CLR:
>>+ if (strcmp(a->fields[i].se_str, b->fields[i].se_str))
>>+ return 1;
>>+ break;
>
>
> Do you want to catch aliases here? If so, you need to have SELinux look
> up the strings and compare the actual values. But possibly that isn't
> critical for the purposes of just preventing duplicate filters.
I like treating them separately because the are conceptually different to the
creator of the audit rules. If X and Y are both types in the policy, then we
should be able to define rules based on them. And yes... this kinda goes back
to keeping rules around even if they are currently invalid (or aliases).
Lets say that the current policy has X aliased to Y, and a ploicy reload
results in X and Y being distinct types - I think the audit rules should be in
there for X and Y.
If we do away with the idea of invalid (or aliased) rules around, we could add
in a comparator function for selinux, but I think we are fine the way it is.
--
Darrel
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2006-02-23 23:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-16 15:19 [RFC] [PATCH] Darrel Goeddel
2006-02-16 18:12 ` Stephen Smalley
2006-02-16 20:09 ` Darrel Goeddel
2006-02-16 20:36 ` Stephen Smalley
2006-02-17 14:43 ` Darrel Goeddel
[not found] ` <1140192267.3083.119.camel@kirkland1.austin.ibm.com>
2006-02-17 16:23 ` Darrel Goeddel
2006-02-17 18:26 ` Stephen Smalley
2006-02-21 21:32 ` [PATCH] context based audit filtering (take 3) Darrel Goeddel
2006-02-21 23:59 ` Darrel Goeddel
2006-02-22 14:58 ` Stephen Smalley
2006-02-23 23:31 ` Darrel Goeddel [this message]
2006-02-24 13:32 ` Stephen Smalley
2006-02-24 15:08 ` Steve Grubb
2006-02-22 15:07 ` Stephen Smalley
2006-02-22 15:24 ` Stephen Smalley
[not found] ` <d9c105ea0602212217g2f255fd8gbf6ac190d7ccd751@mail.gmail.com>
2006-02-22 15:09 ` Stephen Smalley
2006-02-22 14:46 ` Stephen Smalley
2006-02-23 17:42 ` [PATCH] context based audit filtering (take 4) Darrel Goeddel
2006-02-24 13:27 ` Stephen Smalley
2006-02-24 21:44 ` [PATCH] support for context based audit filtering Darrel Goeddel
2006-02-24 22:26 ` Darrel Goeddel
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=43FE45DE.1060503@trustedcs.com \
--to=dgoeddel@trustedcs.com \
--cc=amy.griffis@hp.com \
--cc=dustin.kirkland@us.ibm.com \
--cc=jmorris@namei.org \
--cc=linux-audit@redhat.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=sgrubb@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 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.