public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tycho Andersen <tycho.andersen@canonical.com>
To: "Serge E. Hallyn" <serge@hallyn.com>
Cc: tj@kernel.org, linux-api@vger.kernel.org, adityakali@google.com,
	Linux Containers <containers@lists.osdl.org>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	cgroups@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] cgroup mount: ignore nsroot=
Date: Wed, 30 Mar 2016 12:09:31 -0600	[thread overview]
Message-ID: <20160330180931.GL16629@smitten> (raw)
In-Reply-To: <20160330172100.GA11373@mail.hallyn.com>

On Wed, Mar 30, 2016 at 12:21:00PM -0500, Serge E. Hallyn wrote:
> As of the patch "cgroup namespaces: add a 'nsroot=' mountinfo field", 
> cgroupfs mountinfo output shows 'nsroot='.  If userspace like criu
> copy/pastes mount options from there into a new mount command, we should
> ignore it.
> 
> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

Tested-by: Tycho Andersen <tycho.andersen@canonical.com>

Thanks, Serge.

> ---
>  kernel/cgroup.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/kernel/cgroup.c b/kernel/cgroup.c
> index ef0c25d..69fb112 100644
> --- a/kernel/cgroup.c
> +++ b/kernel/cgroup.c
> @@ -1680,6 +1680,10 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts)
>  			opts->none = true;
>  			continue;
>  		}
> +		if (!strncmp(token, "nsroot=", 7)) {
> +			/* ignore nsroot= copied from mountinfo */
> +			continue;
> +		}
>  		if (!strcmp(token, "all")) {
>  			/* Mutually exclusive option 'all' + subsystem name */
>  			if (one_ss)
> -- 
> 2.7.0
> 

  reply	other threads:[~2016-03-30 18:09 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21 23:41 [RFC PATCH] cgroup namespaces: add a 'nsroot=' mountinfo field Serge E. Hallyn
2016-03-29  1:12 ` Serge E. Hallyn
2016-03-30 18:58   ` Tejun Heo
2016-03-29 13:58 ` Tycho Andersen
2016-03-29 20:00   ` Serge E. Hallyn
2016-03-30 17:21     ` [PATCH] cgroup mount: ignore nsroot= Serge E. Hallyn
2016-03-30 18:09       ` Tycho Andersen [this message]
2016-04-13 17:57 ` [RFC PATCH] cgroup namespaces: add a 'nsroot=' mountinfo field Tejun Heo
2016-04-13 18:46   ` Serge E. Hallyn
2016-04-13 18:50     ` Tejun Heo
2016-04-13 19:01       ` Serge E. Hallyn
2016-04-13 19:12         ` Tejun Heo
2016-04-13 23:31         ` Aditya Kali
2016-04-13 23:52           ` Serge E. Hallyn
2016-04-14  4:04   ` [PATCH] " Serge E. Hallyn
2016-04-14 14:42     ` Eric W. Biederman
2016-04-14 15:27       ` Serge E. Hallyn
2016-04-14 16:12         ` Eric W. Biederman
2016-04-14 16:38           ` Serge E. Hallyn
2016-04-14 16:43             ` Eric W. Biederman
2016-04-15 15:50         ` Aditya Kali
2016-04-15 16:02           ` Serge E. Hallyn

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=20160330180931.GL16629@smitten \
    --to=tycho.andersen@canonical.com \
    --cc=adityakali@google.com \
    --cc=cgroups@vger.kernel.org \
    --cc=containers@lists.osdl.org \
    --cc=ebiederm@xmission.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=serge@hallyn.com \
    --cc=tj@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