All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karl MacMillan <kmacmillan@mentalrootkit.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: "Brian M. Williams" <bwilliams@tresys.com>,
	selinux@tycho.nsa.gov, Joshua Brindle <jbrindle@tresys.com>
Subject: Re: The new audit2allow.
Date: Wed, 15 Aug 2007 09:53:33 -0400	[thread overview]
Message-ID: <1187186013.2674.40.camel@localhost.localdomain> (raw)
In-Reply-To: <1187094627.26008.149.camel@moss-spartans.epoch.ncsc.mil>

On Tue, 2007-08-14 at 08:30 -0400, Stephen Smalley wrote:
> On Mon, 2007-08-13 at 16:52 -0400, Brian M. Williams wrote:
> > I am having huge issues with the new audit2allow.  The new interface
> > matching is very hit or miss, the old audit2allow -R matched the correct
> > interface about as often even if it wasn't the correct way of doing
> > things.  The formatting is a major step back IMO.  Below are the old and
> > new output formats of the call audit2allow -v.  Note that the old -v
> > flag actually gave extra information; it gave the type of denial, the
> > audit number and was well formatted.  I am at a loss to find anything
> > useful -v gives now.  Also now just getting the -R flag to work
> > correctly by finding and installing the correct headers, figuring out
> > the correct place to put them and running some program to parse the
> > header files was enough of a hassle for me to not use that feature.  The
> > addition of a newer python dependency (the python now required for the
> > toolchain is not in RHEL4 and required an update), the huge pain it is
> > just to get it to work was not worth these changes to me.  Does anyone
> > know why these changes were made?
> 
> First, the "new" audit2allow was less about audit2allow than about
> sepolgen, i.e. introducing a python module that would be a basis going
> forward for more advanced policy generation work.  audit2allow was then
> just rewritten to use sepolgen.
> 
> Second, if there are specific regressions in the new audit2allow, then
> yes, those should be corrected.  Can you provide specific examples where
> interface matching is worse - those would be useful test cases going
> forward.  The -v output was never rigorously defined (they were just
> comment lines, after all, and just to help a human reader with
> supplemental information so that he wouldn't have to go back to the
> original audit message and correlate it), and I'm not sure how TYPE=AVC
> is helpful.  Retaining the audit serial number would likely be useful.
> 

Yes - please send me logs where you get unexpected results. Also - can
you explain more what you object to in the formatting. I made the
formatting change because I found the old formatting to be very
difficult to read. I'd be happy to change the formatting to something
that makes me happy and fans of the old way happy, but I need to
understand what you object to more clearly.

Other than the audit serial number, what would you like to see in the -v
output. Also, have you found the -e output that gives lots of
information?

> Third, requiring preparsing of the headers isn't onerous; in Fedora,
> invoking sepolgen-ifgen is handled automatically by the .spec files, and
> it allows errors to be caught sooner, and it avoids the overhead of
> parsing the full headers on every run of audit2allow.
> 

And this should be invokable by a standard user if that helps.

Karl


--
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.

  reply	other threads:[~2007-08-15 13:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13 20:52 The new audit2allow Brian M. Williams
2007-08-14 12:30 ` Stephen Smalley
2007-08-15 13:53   ` Karl MacMillan [this message]
2007-08-15 14:11     ` Karl MacMillan

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=1187186013.2674.40.camel@localhost.localdomain \
    --to=kmacmillan@mentalrootkit.com \
    --cc=bwilliams@tresys.com \
    --cc=jbrindle@tresys.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /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.