mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Salvatore Mesoraca <s.mesoraca16@gmail.com>
Cc: Kernel Hardening <kernel-hardening@lists.openwall.com>,
	Laura Abbott <labbott@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Masahiro Yamada <yamada.masahiro@socionext.com>,
	linux-doc@vger.kernel.org, Kees Cook <keescook@chromium.org>
Subject: Re: [RFC] kconfig: add hardened defconfig helpers
Date: Fri, 20 Jul 2018 08:37:04 -0500	[thread overview]
Message-ID: <87effy9gfz.fsf@xmission.com> (raw)
In-Reply-To: <CAGXu5jK4q6HLDZ6jokTeDABbzVasY85Jo0HFNKYeaKWZYPjPKg@mail.gmail.com> (Kees Cook's message of "Thu, 19 Jul 2018 22:15:15 -0700")

Kees Cook <keescook@chromium.org> writes:

>> +CONFIG_USER_NS=n
>> +~~~~~~~~~~~~~~~~
>> +
>> +**Negative side effects level:** Medium
>
> Unfortunately I think this is High or Extreme. USER_NS gets a lot of use.
>
>> +**- Protection type:** Attack surface reduction
>> +
>> +This allows containers to use user namespaces to provide different
>> +user info for different servers.
>> +User namespaces have been abused in the past for privilege
>> +escalation.

This is not a particularly good description.

User namespaces do indeed increase the attack surface of programs that
don't use them.

User namespaces when used to build ``unprivileged containers'' remove or
at least drastically reduce the need to run as root when setting up
containers.  Which is attack surface reduction.

User namespaces make available tools that are commonly used to build
sandboxes.  Chrome for example uses users namespaces if they are
available as part of setting up it's sandbox.

User namespaces are not limited to containers.

The bugs in the attack surface that user namespaces expose that have
been used for privilege escalation have to the best of my knowledge
closed.  So while there is some danger in the increased attack surface
we are looking at implementation defects rather than design defects.

Eric

  reply	other threads:[~2018-07-20 13:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1531935483-30784-1-git-send-email-s.mesoraca16@gmail.com>
2018-07-20  5:15 ` Kees Cook
2018-07-20 13:37   ` Eric W. Biederman [this message]
2018-07-30 16:19     ` Salvatore Mesoraca
2018-07-23  1:55   ` Masahiro Yamada
2018-07-28 20:11     ` Kees Cook
2018-07-30 16:11   ` Salvatore Mesoraca
2018-07-30 16:54     ` Kees Cook
2018-07-31  7:43       ` Salvatore Mesoraca

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=87effy9gfz.fsf@xmission.com \
    --to=ebiederm@xmission.com \
    --cc=keescook@chromium.org \
    --cc=kernel-hardening@lists.openwall.com \
    --cc=labbott@redhat.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=s.mesoraca16@gmail.com \
    --cc=yamada.masahiro@socionext.com \
    /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

Powered by JetHome