mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Li Zefan <lizefan@huawei.com>, Johannes Weiner <hannes@cmpxchg.org>
Cc: cgroups@vger.kernel.org, Aravind Anbudurai <aru7@fb.com>,
	linux-kernel@vger.kernel.org, Serge Hallyn <serge@hallyn.com>,
	Eric Biederman <ebiederm@xmission.com>
Subject: Re: [PATCH v2 3/3] cgroup: implement "nsdelegate" mount option
Date: Wed, 28 Jun 2017 14:44:41 -0400	[thread overview]
Message-ID: <20170628184441.GC27833@htj.duckdns.org> (raw)
In-Reply-To: <20170627183028.GF2289@htj.duckdns.org>

On Tue, Jun 27, 2017 at 02:30:28PM -0400, Tejun Heo wrote:
> Currently, cgroup only supports delegation to !root users and cgroup
> namespaces don't get any special treatments.  This limits the
> usefulness of cgroup namespaces as they by themselves can't be safe
> delegation boundaries.  A process inside a cgroup can change the
> resource control knobs of the parent in the namespace root and may
> move processes in and out of the namespace if cgroups outside its
> namespace are visible somehow.
> 
> This patch adds a new mount option "nsdelegate" which makes cgroup
> namespaces delegation boundaries.  If set, cgroup behaves as if write
> permission based delegation took place at namespace boundaries -
> writes to the resource control knobs from the namespace root are
> denied and migration crossing the namespace boundary aren't allowed
> from inside the namespace.
> 
> This allows cgroup namespace to function as a delegation boundary by
> itself.
> 
> v2: Silently ignore nsdelegate specified on !init mounts.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Aravind Anbudurai <aru7@fb.com>
> Cc: Serge Hallyn <serge@hallyn.com>
> Cc: Eric Biederman <ebiederm@xmission.com>

Applying 2-3 to cgroup/for-4.13.

Thanks.

-- 
tejun

  reply	other threads:[~2017-06-28 18:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-25  4:27 [1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee Tejun Heo
2017-06-25  4:27 ` [PATCH 2/3] cgroup: restructure cgroup_procs_write_permission() Tejun Heo
2017-06-25  4:28   ` [PATCH 3/3] cgroup: implement "nsdelegate" mount option Tejun Heo
2017-06-27 18:30     ` [PATCH v2 " Tejun Heo
2017-06-28 18:44       ` Tejun Heo [this message]
2017-06-25  4:31 ` [1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee Tejun Heo

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=20170628184441.GC27833@htj.duckdns.org \
    --to=tj@kernel.org \
    --cc=aru7@fb.com \
    --cc=cgroups@vger.kernel.org \
    --cc=ebiederm@xmission.com \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizefan@huawei.com \
    --cc=serge@hallyn.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

all inboxes | Powered by JetHome®