From: "Serge E. Hallyn" <serge@hallyn.com>
To: chris hyser <chris.hyser@oracle.com>
Cc: "Serge E. Hallyn" <serge@hallyn.com>,
"Daniel Micay" <danielmicay@gmail.com>,
"Mahesh Bandewar (महेश बंडेवार)" <maheshb@google.com>,
"Mahesh Bandewar" <mahesh@bandewar.net>,
LKML <linux-kernel@vger.kernel.org>,
Netdev <netdev@vger.kernel.org>,
Kernel-hardening <kernel-hardening@lists.openwall.com>,
"Linux API" <linux-api@vger.kernel.org>,
"Kees Cook" <keescook@chromium.org>,
"Eric W . Biederman" <ebiederm@xmission.com>,
"Eric Dumazet" <edumazet@google.com>,
"David Miller" <davem@davemloft.net>
Subject: Re: [kernel-hardening] Re: [PATCH resend 2/2] userns: control capabilities of some user namespaces
Date: Thu, 9 Nov 2017 12:05:36 -0600 [thread overview]
Message-ID: <20171109180536.GA27994@mail.hallyn.com> (raw)
In-Reply-To: <da764cbf-7522-06a0-6c21-adfa3eaac9c2@oracle.com>
Quoting chris hyser (chris.hyser@oracle.com):
> On 11/06/2017 10:23 PM, Serge E. Hallyn wrote:
> >I think I definately prefer what I mentioned in the email to Boris.
> >Basically a "permanent capability bounding set". The normal bounding
> >set gets reset to a full set on every new user_ns creation. In this
> >proposal, it would instead be set to the calling task's permanent
> >capability set, which starts (at boot) full, and which privileged
> >tasks can pull capabilities out of.
>
> Actually, this may solve a similar problem I've been looking at. The
> idea was basically at strategic points in the kernel (possibly LSM
> hook sites, still evaluating, and probably syscall entry) validate
> that a task has not "magically" acquired capabilities that it or
> parent specifically said it cannot have and then take some action
> like say killing it immediately. Using your terms, basically make
> the "permanent capability set" a write-once privilege escalation
> defense. To handle the 0-day threat, perhaps make it writable but
> only with more "restrictive" values.
Would the existing capability bounding set not suffice for that?
The 'permanent' bounding set turns out to not be a good fit for
the problem being discussed in this thread, but please feel free
to start a new thread if you want to discuss your use case.
next prev parent reply other threads:[~2017-11-09 18:05 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-03 0:44 [PATCH resend 2/2] userns: control capabilities of some user namespaces Mahesh Bandewar
2017-11-04 23:53 ` Serge E. Hallyn
2017-11-06 7:23 ` Mahesh Bandewar (महेश बंडेवार)
2017-11-06 15:03 ` Serge E. Hallyn
2017-11-06 21:33 ` [kernel-hardening] " Daniel Micay
2017-11-06 22:14 ` Serge E. Hallyn
2017-11-06 22:42 ` Christian Brauner
2017-11-06 23:17 ` Boris Lukashev
2017-11-06 23:39 ` Serge E. Hallyn
2017-11-07 0:01 ` Boris Lukashev
2017-11-07 3:28 ` Serge E. Hallyn
2017-11-08 11:09 ` Mahesh Bandewar (महेश बंडेवार)
2017-11-08 19:02 ` Christian Brauner
2017-11-09 0:55 ` Mahesh Bandewar (महेश बंडेवार)
2017-11-09 3:21 ` Serge E. Hallyn
2017-11-09 7:18 ` Mahesh Bandewar (महेश बंडेवार)
2017-11-09 16:14 ` Serge E. Hallyn
2017-11-09 21:58 ` Eric W. Biederman
2017-11-10 4:30 ` Mahesh Bandewar (महेश बंडेवार)
2017-11-10 4:46 ` Serge E. Hallyn
2017-11-10 5:28 ` Mahesh Bandewar (महेश बंडेवार)
2017-11-07 2:16 ` Daniel Micay
2017-11-07 3:23 ` Serge E. Hallyn
2017-11-09 18:01 ` chris hyser
2017-11-09 18:05 ` Serge E. Hallyn [this message]
2017-11-09 18:27 ` chris hyser
2017-11-09 17:25 ` Serge E. Hallyn
2017-11-10 1:49 ` Mahesh Bandewar (महेश बंडेवार)
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=20171109180536.GA27994@mail.hallyn.com \
--to=serge@hallyn.com \
--cc=chris.hyser@oracle.com \
--cc=danielmicay@gmail.com \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=edumazet@google.com \
--cc=keescook@chromium.org \
--cc=kernel-hardening@lists.openwall.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mahesh@bandewar.net \
--cc=maheshb@google.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).