More LSM vs. Containers (having nothing at all to do with the AppArmor Security Goal)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Crispin Cowan
Date: Friday, November 16, 2007 - 6:08 pm

Peter Dolding wrote:
Because I can't find any documentation for cgroups? :)

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


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?

What makes sense to me is to ensure that it is easy for an LSM module to
have a policy per container. This is relatively easy to do, and maps
very well to the primary use of containers for hosting virtual domains.

Crispin

-- 
Crispin Cowan, Ph.D.               http://crispincowan.com/~crispin
CEO, Mercenary Linux		   http://mercenarylinux.com/
	       Itanium. Vista. GPLv3. Complexity at work

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Apparmor-dev] Re: AppArmor Security Goal, Crispin Cowan, (Tue Nov 13, 1:23 am)
Re: [Apparmor-dev] Re: AppArmor Security Goal, Peter Dolding, (Thu Nov 15, 3:58 pm)
More LSM vs. Containers (having nothing at all to do with ..., Crispin Cowan, (Fri Nov 16, 6:08 pm)