All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karl MacMillan <kmacmillan@mentalrootkit.com>
To: James Morris <jmorris@namei.org>
Cc: jwcart2@tycho.nsa.gov, SELinux <selinux@tycho.nsa.gov>,
	Steve Smalley <sds@epoch.ncsc.mil>
Subject: Re: Are the reference policy abstractions the right ones?
Date: Mon, 15 Oct 2007 18:23:39 -0400	[thread overview]
Message-ID: <1192487019.2871.23.camel@localhost.localdomain> (raw)
In-Reply-To: <Xine.LNX.4.64.0710160652220.29662@us.intercode.com.au>

On Tue, 2007-10-16 at 07:15 +1000, James Morris wrote:
> On Mon, 15 Oct 2007, Karl MacMillan wrote:
> 

[...]

> > > labeling rules, 
> > 
> > This one is not clear to me. Every time you inherit from a type_class
> > you are creating new types which, almost by definition, should have
> > separate labeling from parent types. When the labeling should be the
> > same you likely want to factor out the type.
> 
> The reason for it is twofold:
>  - allow binding of the class to OS objects
>  - allow the labeling rules to be modified via inheritance
> 
> So, someone wanting to customize their httpd would subclass the httpd 
> security object, which would also need a new name, and potentially 
> override the labeling rules (e.g. different paths to files).
> 

It seems that wanting to _not_ override the rules would only occur in
the case of a container (and even there I'm not certain that is true -
it seems safer to always state the labeling from outside of the
container). So the common case (and the only one possible today) is that
you would always override the rules.

> > > network policy,
> > 
> > Not certain what you mean here - isn't that just packet types?
> 
> Things like netfilter contexts, port labels etc. which can be collected 
> together into a class under this scheme.
> 

These are all handled as types, correct?

> > I agree with the general idea. The devil will be in the details. There
> > also isn't really a good container to reuse. Virtual machines are too
> > separate, we need something where there is the possibility of controlled
> > sharing. Hardened chroots / jails I guess or perhaps one of the other
> > light-weight containers.
> > 
> > Though this won't solve all problems, I do think that making it easy to
> > use containers is important.
> 
> I was thinking of allowing flexibility with the granularity of the class, 
> allowing it to be constructed in a way which matched the granularity at 
> which the admin is managing the system.  Containers are just one example, 
> where you might have a class composed of other classes, with the top level 
> being itself a container, bound to the OS container.
> 
> e.g. for a VM, you'd have a "vm" class containing "base_os" class and the 
> application class.  So, everything needed is packaged with the VM (or 
> whatever: RPM, tarball).  The admin would configure the security of the 
> overall system via a relatively simple config file which specifies 
> interactions between these encapsulating objects (in this case, vm-vm and 
> vm-host policy).
> 
> This allows the low-level policy to be hidden via encapsulation, and for 
> the admin to be able to think at a higher level in terms of how components 
> interact.
> 

I agree about the general point, but not your specific example. Do we
really want every VM to have a unique policy? That would force us to
always do label translation when talking over the network, adding
complexity rather than removing it.

Karl

> 
> - James


--
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-10-15 22:23 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-09 15:08 Are the reference policy abstractions the right ones? James Carter
2007-10-09 17:10 ` Karl MacMillan
2007-10-09 18:54   ` James Carter
2007-10-09 19:07     ` Karl MacMillan
2007-10-09 19:44       ` James Carter
2007-10-09 20:00         ` Karl MacMillan
2007-10-10 15:23           ` Karl MacMillan
2007-10-10 15:47             ` Joshua Brindle
2007-10-10 16:52             ` James Carter
2007-10-10 20:39               ` Karl MacMillan
2007-10-11 17:00                 ` Karl MacMillan
2007-10-11 17:32                   ` James Carter
2007-10-12 16:45                   ` Chad Sellers
2007-10-12 19:53                     ` James Carter
2007-10-12 19:59                       ` Karl MacMillan
2007-10-12 20:48                       ` Chad Sellers
2007-10-15  2:50                   ` James Morris
2007-10-15  3:45                     ` Joe Nall
2007-10-15  4:06                       ` James Morris
2007-10-15 14:30                     ` David P. Quigley
2007-10-15 18:55                     ` Karl MacMillan
2007-10-15 21:15                       ` James Morris
2007-10-15 22:23                         ` Karl MacMillan [this message]
2007-10-11 23:30             ` Daniel J Walsh
2007-10-09 17:34 ` Joshua Brindle
2007-10-09 18:18 ` Christopher J. PeBenito
2007-10-10 15:09 ` Karl MacMillan
2007-10-10 16:25   ` Casey Schaufler
2007-10-10 18:26   ` Paul Moore
2007-10-11  7:18 ` Frank L. Mayer
2007-10-11 20:26   ` James Carter
2007-10-12 16:45     ` Chad Sellers

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=1192487019.2871.23.camel@localhost.localdomain \
    --to=kmacmillan@mentalrootkit.com \
    --cc=jmorris@namei.org \
    --cc=jwcart2@tycho.nsa.gov \
    --cc=sds@epoch.ncsc.mil \
    --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.