All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: Re: Policy]
@ 2002-04-04  1:06 Gregory Ade
  2002-04-04  2:38 ` Russell Coker
  0 siblings, 1 reply; 2+ messages in thread
From: Gregory Ade @ 2002-04-04  1:06 UTC (permalink / raw)
  To: Howard Holm; +Cc: Russell Coker, Westerman, Mark, SeLinux, sds, pal

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Fwd: Re: Policy]
  2002-04-04  1:06 [Fwd: Re: Policy] Gregory Ade
@ 2002-04-04  2:38 ` Russell Coker
  0 siblings, 0 replies; 2+ messages in thread
From: Russell Coker @ 2002-04-04  2:38 UTC (permalink / raw)
  To: Gregory Ade, Howard Holm; +Cc: Westerman, Mark, SeLinux, sds, pal

On Thu, 4 Apr 2002 03:06, Gregory Ade wrote:
> 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. =)

Seems like we're getting agreement on that.

> 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

We currently have /etc/selinux/domains/programs for policy fragments for 
particular programs.

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

Conflicts should result in an error message and the administrator having to 
fix it!

For ordering, we could prepend a 2 digit number like we do for init scripts.

-- 
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-04  2:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-04  1:06 [Fwd: Re: Policy] Gregory Ade
2002-04-04  2:38 ` Russell Coker

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.