From: "Peter Dolding" <oiaohm@gmail.com>
To: "Crispin Cowan" <crispin@crispincowan.com>
Cc: rmeijer@xs4all.nl, apparmor-dev@forge.novell.com,
"LSM ML" <linux-security-module@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Arjan van de Ven" <arjan@infradead.org>
Subject: Re: More LSM vs. Containers (having nothing at all to do with the AppArmor Security Goal)
Date: Sat, 17 Nov 2007 17:57:32 +1000 [thread overview]
Message-ID: <e7d8f83e0711162357k8e06c0dqedaf0abd6c67e3fe@mail.gmail.com> (raw)
In-Reply-To: <473E3EF3.7070008@crispincowan.com>
On Nov 17, 2007 11:08 AM, Crispin Cowan <crispin@crispincowan.com> wrote:
> Peter Dolding wrote:
> >>> What is left unspecified here is 'how' a child 'with its own profile' is
> >>> confined here. Are it is confined to just its own profile, it may that
> >>> the "complicit process" communication may need to be wider specified to
> >>> include this.
> >>>
> > Sorry have to bring this up. cgroups why not?
> Because I can't find any documentation for cgroups? :)
>
> > Assign application to
> > a cgroup that contains there filesystem access permissions. Done
> > right this could even be stacked. Only give less access to
> > application unless LSM particularly overrides.
> >
> This comes no where close to AppArmor's functionality:
>
> * Can't do learning mode
> * Can't do wildcards
> * Sucks up huge loads of memory to do that much FS mounting (imagine
> thousands of bind mounts)
> * I'm not sure, but I don't think you can do file granularity, only
> directories
>
Ok sorry to say so far almost percent wrong. Please note netlabels
falls into a control group. All function of Apparmor is doable bar
exactly learning mode. For learning mode that would have to be a
hook back to a LSM I would expect.
Done right should suck up no more memory than current apparmor. But
it will required all LSM's doing file access to come to common
agreement how to do it. Not just hooks into the kernel system any
more.
At the container entrance point there needs file granularity applied
for complete and correct container isolation to be done.
>
> > There are reasons why I keep on bring containers up it changes the
> > model. Yes I know coming to a common agreement in these sections will
> > not be simple. But at some point it has to be done.
> >
> Containers and access controls provide related but different functions.
> Stop trying to force containers to be an access control system, it does
> not fit well at all.
>
> Rather, we need to ensure that LSM and containers play well together.
> What you proposed in the past was to have an LSM module per container,
> but I find that absurdly complex: if you want that, then use a real VMM
> like Xen or something. Containers are mostly used for massive virtual
> domain hosting, and what you want there is as much sharing as possible
> while maintaining isolation. so why would you corrupt that with separate
> LSM modules per container?
Please stop being foolish. Xen and the like don't share memory. You
are basically saying blow out memory usage just because someone wants
to use a different LSM.
Besides file access control is part of running containers isolated in
the first place and need to be LSM neutral.
This is the problem current model just will not work. Some features
are need in Linux kernel all the time and have to become LSM neutral
due to the features of containers.
Next big after filesystem most likely will be the common security
controls for devices. These are just features need to complete
containers. Basically to do containers LSM have to be cut up. Or
containers function will be dependent on the current LSM to be use
completely.
Peter Dolding
next prev parent reply other threads:[~2007-11-17 7:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <10657.80.126.27.205.1194933072.squirrel@webmail.xs4all.nl>
2007-11-13 8:23 ` [Apparmor-dev] Re: AppArmor Security Goal Crispin Cowan
2007-11-15 22:58 ` Peter Dolding
2007-11-17 1:08 ` More LSM vs. Containers (having nothing at all to do with the AppArmor Security Goal) Crispin Cowan
2007-11-17 7:57 ` Peter Dolding [this message]
2007-11-17 19:22 ` Casey Schaufler
2007-11-18 11:35 ` Peter Dolding
2007-11-18 19:25 ` Crispin Cowan
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=e7d8f83e0711162357k8e06c0dqedaf0abd6c67e3fe@mail.gmail.com \
--to=oiaohm@gmail.com \
--cc=apparmor-dev@forge.novell.com \
--cc=arjan@infradead.org \
--cc=crispin@crispincowan.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=rmeijer@xs4all.nl \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®