All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory Ade <gkade@bigbrother.net>
To: Howard Holm <hdholm@epoch.ncsc.mil>
Cc: Russell Coker <russell@coker.com.au>,
	"Westerman, Mark" <Mark.Westerman@csoconline.com>,
	SeLinux@tycho.nsa.gov, sds@tislabs.com, pal@tycho.nsa.gov
Subject: [Fwd: Re: Policy]
Date: 03 Apr 2002 17:06:10 -0800	[thread overview]
Message-ID: <1017882461.14980.107.camel@pslgregory> (raw)

[-- Attachment #1: Type: text/plain, Size: 3337 bytes --]

Whoops, meant to hit "Reply All". =)

-----Forwarded Message-----

From: Gregory Ade <gkade@bigbrother.net>
To: Howard Holm <hdholm@epoch.ncsc.mil>
Subject: Re: Policy
Date: 03 Apr 2002 16:50:02 -0800

On Wed, 2002-04-03 at 14:04, Howard Holm wrote:

> The most compelling argument for me, though is that I believe the SELinux
> utilities are being installed to "replace or upgrade software in /usr" as
> described in section 4.9.1.  We have often said that we would like the
> changes in the utilities to be transparent on a non-SELinux system and
> carried by the upstream packages.  From that perspective, the utilties are
> direct replacements and I would argue that binary packages should replace
> the equivalent non-SELinux packages on an SELinux system.  (I suspect
> several people will strongly disagree with me on that point.)  For people
> building it from source, I think they must have the option to install in
> /usr/local/{bin,sbin,include,lib,share} because I think that makes it far
> more clearly "locally maintained" software.  That may be an inconsistent
> view of the world, but that's the way I see it.

Been lurking for a while, but:

I'd agree with this.  if the goal is to become a seamless part of the
underlying distribution, then stay out of /usr/local or /opt; just go
ahead and replace the existing binaries (optionally, for the more
advanced packagers, you could make backup copies of all the originals,
like 'ls.preselinux' or whatever).  To be really slick, the SELinux
packages would act as upgrades or replacements for whichever packages'
binaries are being replaced, so that the package manager can keep track
of everything sanely.

When building from source, I'd most likely put it /usr/local/selinux,
just to keep it simple.  In my eyes, /usr/local (and, to an extent,
/opt) is the sole domain of the sysadmin to manage at his discretion,
and package managers should keep their grubby fingers out of there. =)

> > Standard proceedure for Unix software distribution in my experience...
> 
> The policy has its own unique complications.  I think it would be great
> to allow packages to modify the default polic(ies) when they are installed
> so that the default polic(ies) include(s) the statements from all installed
> packages.
[snip]
> I think this needs some more discussion.

Or, how's this for an idea (note that i'm very unfamiliar with the
current way policies are managed, so this could well be construed as me
talking out my behind):

Policy is defined, instead of in a single file, by a combination of a
"top" configuration file and a "bottom" directory containing parts. 
i.e.:

/etc/selinux/policy	- local sysadmin-defined policy rules

/etc/selinux/policy.d/*	- policy fragments installed by the various 			 
SELinux components

Then, the programs that actually check and apply the policies would
first compile them from the /etc/selinux/policy.d/* files, and then
apply the policies from /etc/selinux/policy, where conflicts result in
/etc/selinux/policy overriding anything else?

I'm going to go do some more reading and tinkering and see how far
off-base what I just said is... =)

-- 
Gregory K. Ade <gkade@bigbrother.net>
http://bigbrother.net/~gkade
OpenPGP Key ID: EAF4844B  keyserver: pgpkeys.mit.edu

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

             reply	other threads:[~2002-04-04  1:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-04  1:06 Gregory Ade [this message]
2002-04-04  2:38 ` [Fwd: Re: Policy] Russell Coker

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=1017882461.14980.107.camel@pslgregory \
    --to=gkade@bigbrother.net \
    --cc=Mark.Westerman@csoconline.com \
    --cc=SeLinux@tycho.nsa.gov \
    --cc=hdholm@epoch.ncsc.mil \
    --cc=pal@tycho.nsa.gov \
    --cc=russell@coker.com.au \
    --cc=sds@tislabs.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.