From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Stephen Smalley <sds@tycho.nsa.gov>, Paul Moore <paul@paul-moore.com>
Cc: <selinux@tycho.nsa.gov>, <dwalsh@redhat.com>,
Miroslav Grepl <mgrepl@redhat.com>
Subject: Re: [PATCH] selinux: distinguish non-init user namespace capability checks
Date: Wed, 27 Apr 2016 08:22:46 -0400 [thread overview]
Message-ID: <5720AF16.1020108@tresys.com> (raw)
In-Reply-To: <46d242c8-ca4c-dfea-a93f-73bdc57db1cd@tycho.nsa.gov>
On 4/26/2016 4:06 PM, Stephen Smalley wrote:
> On 04/26/2016 03:51 PM, Paul Moore wrote:
>> On Friday, April 08, 2016 01:52:00 PM Stephen Smalley wrote:
>>> Distinguish capability checks against a target associated
>>> with the init user namespace versus capability checks against
>>> a target associated with a non-init user namespace by defining
>>> and using separate security classes for the latter.
>>>
>>> This is needed to support e.g. Chrome usage of user namespaces
>>> for the Chrome sandbox without needing to allow Chrome to also
>>> exercise capabilities on targets in the init user namespace.
>>>
>>> Suggested-by: Dan Walsh <dwalsh@redhat.com>
>>> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
>>> ---
>>> security/selinux/hooks.c | 14 +++++++-------
>>> security/selinux/include/classmap.h | 28 ++++++++++++++++++----------
>>> 2 files changed, 25 insertions(+), 17 deletions(-)
>>
>> Applied, thanks.
>
> I pushed the test for these new checks to a branch of selinux-testsuite
> (#userns) because the test can't be used without a corresponding update
> to policy to define the new classes, so I will wait to merge to master
> until rawhide gets the new class definitions. Also, I'll need to make
> the test code conditional on kernel version so that it won't fail on
> kernels that predate the support. Will this change be in 4.7?
I've pushed the class definitions for refpolicy.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
prev parent reply other threads:[~2016-04-27 12:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-08 17:52 [PATCH] selinux: distinguish non-init user namespace capability checks Stephen Smalley
2016-04-26 19:51 ` Paul Moore
2016-04-26 20:06 ` Stephen Smalley
2016-04-26 20:57 ` Paul Moore
2016-04-27 12:22 ` Christopher J. PeBenito [this message]
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=5720AF16.1020108@tresys.com \
--to=cpebenito@tresys.com \
--cc=dwalsh@redhat.com \
--cc=mgrepl@redhat.com \
--cc=paul@paul-moore.com \
--cc=sds@tycho.nsa.gov \
--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.