From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754433Ab3AKBP5 (ORCPT ); Thu, 10 Jan 2013 20:15:57 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:39391 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754214Ab3AKBPz (ORCPT ); Thu, 10 Jan 2013 20:15:55 -0500 Message-ID: <50EF67BF.20200@canonical.com> Date: Thu, 10 Jan 2013 17:15:43 -0800 From: John Johansen Organization: Canonical User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "Eric W. Biederman" CC: James Morris , Casey Schaufler , Stephen Rothwell , LSM , LKLM , SE Linux , Eric Paris , Tetsuo Handa , Kees Cook , Andrew Morton Subject: Re: [PATCH v12 0/9] LSM: Multiple concurrent LSMs References: <50EB7C50.3070605@schaufler-ca.com> <20130108140159.83c07fa6a680e355f024970f@canb.auug.org.au> <50EB9A5E.1080306@schaufler-ca.com> <50EC8447.1000301@canonical.com> <50EE9733.2060409@canonical.com> <87lic0sg09.fsf@xmission.com> <50EF6368.6070504@canonical.com> <87d2xcsesh.fsf@xmission.com> In-Reply-To: <87d2xcsesh.fsf@xmission.com> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/10/2013 05:13 PM, Eric W. Biederman wrote: > John Johansen writes: > >>> When a distro is run in a container it is desirable to be able to run >>> the distro's security policy in that container. Ideally this will get >>> addressed by being able to do some level of per user namespace stacking. >>> Say selinux outside and apparmor inside a container. >>> >>> I think this would take a little more work than what Casey has currently >>> devised but I am hopeful an additional layer of stacking can be added >>> after Casey has merged the basic layer of stacking. >>> >> Right the general case will take more, but doing things like selinux on >> the outside and apparmor inside are doable right now. And we are working >> on supporting stacked apparmor policy right now so apparmor outside and >> a different apparmor policy inside will be doable soon. > > Cool. For stacked apparmor how are you deciding which tasks get which > policy? Is this based on user namespaces or something else? > its based on the apparmor policy namespace, which is inherited from the parent task.