Commit f7d70a0c authored by Serge Hallyn's avatar Serge Hallyn Committed by Tim Gardner

UBUNTU: SAUCE: cgroup mount: ignore nsroot=

BugLink: http://bugs.launchpad.net/bugs/1563921

our mountinfo output now shows 'nsroot='.  If userspace like
criu copy/pastes mount options from there into a new mount
command, we should ignore it.
Signed-off-by: default avatarSerge Hallyn <serge.hallyn@ubuntu.com>
Tested-by: default avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent bd9a3635
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment