public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Darrel Goeddel <dgoeddel@trustedcs.com>
To: Steve Grubb <sgrubb@redhat.com>
Cc: Linux Audit Discussion <linux-audit@redhat.com>
Subject: audit by role testing
Date: Tue, 04 Apr 2006 12:33:57 -0500	[thread overview]
Message-ID: <4432AE05.2080601@trustedcs.com> (raw)
In-Reply-To: <200604031722.44377.sgrubb@redhat.com>

Here:

http://dgoeddel.home.insightbb.com/audit/

are some patches that will enable users to test the selinux context audit
filters.  They are largely based on some previous work by Amy and Dustin
(some things are named differently, and some more stuff is filled out).
These patches are not meant for inclusion into the audit package - they are
probably not ready for that ;)  They were merely a way to test the new
functionality provided in the lspp kernel.  I can rework them if there are
suggestions that could make them acceptable for the real audit package.

I also stuck a source rpm there that has the two patches in there.  You can
just grab that, build it, and force upgrade ('-Uhv --force' is what I do)
the audit package that you have installed.

The first patch (audit-1.1.5-audit_rule_data-support.patch) basically mirrors
all calls that use an audit_rule struct with a similar call that uses an
audit_rule_data struct.  There are also a few bits that define things for
nice compilation with the current headers.  This patch should be completely
backwards compatible since it only introduces new things (which are unused).

The second patch (audit-1.1.5-audit_rule_data-use.patch) converts auditctl and
autrace to use the audit_rule_data struct instead of the audit_rule struct.
This patch will not work on kernels that do not support AUDIT_ADD_RULE,
AUDIT_DEL_RULE, and AUDIT_LIST_RULES (the lspp kernel is OK, but the regular
FC5 kernel is not).

Using this auditctl (and the lspp kernel), you should be able to use the new
field values of se_user, se_role, se_type, se_sen, and se_clr.  Note that the
se_sen and se_clr values will need to be in the "untranslated" form
(e.g. s5:c0).

--

Darrel

       reply	other threads:[~2006-04-04 17:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200604031722.44377.sgrubb@redhat.com>
2006-04-04 17:33 ` Darrel Goeddel [this message]
2006-04-04 20:42   ` audit by role testing 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=4432AE05.2080601@trustedcs.com \
    --to=dgoeddel@trustedcs.com \
    --cc=linux-audit@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox