netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: daniel@iogearbox.net
Cc: alexei.starovoitov@gmail.com, hannes@stressinduktion.org,
	ebiederm@xmission.com, netdev@vger.kernel.org
Subject: Re: [PATCH net] bpf, inode: disallow userns mounts
Date: Mon, 23 May 2016 15:09:01 -0700 (PDT)	[thread overview]
Message-ID: <20160523.150901.61113479651269879.davem@davemloft.net> (raw)
In-Reply-To: <2e93b4dc22940025ef082970cbab0f499e1e9726.1463950945.git.daniel@iogearbox.net>

From: Daniel Borkmann <daniel@iogearbox.net>
Date: Sun, 22 May 2016 23:16:18 +0200

> Follow-up to commit e27f4a942a0e ("bpf: Use mount_nodev not mount_ns
> to mount the bpf filesystem"), which removes the FS_USERNS_MOUNT flag.
> 
> The original idea was to have a per mountns instance instead of a
> single global fs instance, but that didn't work out and we had to
> switch to mount_nodev() model. The intent of that middle ground was
> that we avoid users who don't play nice to create endless instances
> of bpf fs which are difficult to control and discover from an admin
> point of view, but at the same time it would have allowed us to be
> more flexible with regard to namespaces.
> 
> Therefore, since we now did the switch to mount_nodev() as a fix
> where individual instances are created, we also need to remove userns
> mount flag along with it to avoid running into mentioned situation.
> I don't expect any breakage at this early point in time with removing
> the flag and we can revisit this later should the requirement for
> this come up with future users. This and commit e27f4a942a0e have
> been split to facilitate tracking should any of them run into the
> unlikely case of causing a regression.
> 
> Fixes: b2197755b263 ("bpf: add support for persistent maps/progs")
> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
> Acked-by: Alexei Starovoitov <ast@kernel.org>

Applied and queued up for -stable, thanks.

      reply	other threads:[~2016-05-23 22:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-22 21:16 [PATCH net] bpf, inode: disallow userns mounts Daniel Borkmann
2016-05-23 22:09 ` David Miller [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=20160523.150901.61113479651269879.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=alexei.starovoitov@gmail.com \
    --cc=daniel@iogearbox.net \
    --cc=ebiederm@xmission.com \
    --cc=hannes@stressinduktion.org \
    --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).