From: Dave Sugar <dsugar@tresys.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov
Subject: Re: Need to break or reduce the dependency on a static libsepol
Date: Wed, 02 Apr 2008 16:14:12 -0400 [thread overview]
Message-ID: <1207167252.24218.4.camel@localhost.localdomain> (raw)
In-Reply-To: <1207076496.5610.266.camel@moss-spartans.epoch.ncsc.mil>
On Tue, 2008-04-01 at 15:01 -0400, Stephen Smalley wrote:
> On Tue, 2008-04-01 at 14:27 -0400, David Sugar wrote:
> > Steve,
> >
> > SLIDE does not have any dependency on libsepol. But in what we are
> > working on for CDS Framework we have recently introduced dependencies on
> > the static libsepol. We need to be able to query the policy to verify
> > that any particular allow rules have been put in place. This is
> > specifically important when MLS is enabled to verify that MLS
> > constraints are not denying an access.
> >
> > I don't remember off the top of my head exactly which functions are
> > being used from the static libsepol but I know there were a few things
> > that were not exported in the shared object and Josh said to use the
> > static version.
>
> Don't know if this helps, but audit2why will tell you whether or not a
> denial is due to a constraint violation (not specifically MLS, but any
> constraint). And libselinux now provides a python binding to audit2why.
> If you can use that or extend it, then we at least don't add one more
> copy of the static libsepol on the system.
>
Of course CDS Framework is Java and we wrote just enough Java SWIG
bindings to get what we needed out of libsepol. We don't have an audit
message we actually are checking the graphically designed policy for
what allows should be there and making sure they all are truly allowed.
Josh has suggested we put the SWIG bindings into libsepol. And I'm in
favor of that, but it is not complete because it is only what we are
using in CDS Framework.
> > Dave
> >
> > On Tue, 2008-04-01 at 08:07 -0400, Stephen Smalley wrote:
> > > This is likely my fault, but we're encountering increasing problems from
> > > growth in the set of things that depend on the static libsepol whenever
> > > we make a change to libsepol, particularly a policy version change. We
> > > now have (at least) the following dependencies on it:
> > > checkpolicy (always true, not likely to go away)
> > > libselinux (for the audit2why python binding module, which used to be
> > > its own utility in policycoreutils)
> > > setools
> > >
> > > Does slide also have this dependency or is it clean? Anything else to
> > > worry about?
> > >
> > > The result is that when a newer libsepol gets incorporated and
> > > libselinux or setools does not, we encounter breakage (unable to find a
> > > policy file they can read or unable to read the policy file at which
> > > they are pointed) or confusion (reading an older policy file left around
> > > from before the libsepol update) upon trying to use audit2why or
> > > setools.
> > >
> > > We ran into this problem twice in rawhide / F9, once upon the policy
> > > capability support (policy.22) and now for permissive types (policy.23).
> > >
> > > Only real way forward that I can see it to actually encapsulate the
> > > interfaces required by audit2why and setools so that they can use the
> > > shared libsepol.
> > >
--
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.
prev parent reply other threads:[~2008-04-02 20:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 12:07 Need to break or reduce the dependency on a static libsepol Stephen Smalley
2008-04-01 12:24 ` Joshua Brindle
2008-04-02 19:56 ` Joshua Brindle
2008-04-03 13:55 ` Stephen Smalley
2008-04-03 14:06 ` Joshua Brindle
2008-04-03 14:15 ` Stephen Smalley
2008-04-03 14:31 ` Stephen Smalley
2008-04-03 14:36 ` Joshua Brindle
2008-04-01 18:27 ` David Sugar
2008-04-01 19:01 ` Stephen Smalley
2008-04-02 20:14 ` Dave Sugar [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=1207167252.24218.4.camel@localhost.localdomain \
--to=dsugar@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.