aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-02-13 06:58:38 -0500
committerTejun Heo <tj@kernel.org>2014-02-13 06:58:38 -0500
commitd3ba07c3aa9ae3e03329b0a7f1a067c0647aa2af (patch)
tree17a4968e339822a520f864fe4127be39e0563f5c /include/linux/cgroup.h
parenta755180bab81c038a6989d7ab746c702f1b3ec03 (diff)
cgroup: disallow xattr, release_agent and name if sane_behavior
Disallow more mount options if sane_behavior. Note that xattr used to generate warning. While at it, simplify option check in cgroup_mount() and update sane_behavior comment in cgroup.h. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r--include/linux/cgroup.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 298d616e8f40..5f669ca0ee36 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -227,8 +227,8 @@ enum {
227 * 227 *
228 * The followings are the behaviors currently affected this flag. 228 * The followings are the behaviors currently affected this flag.
229 * 229 *
230 * - Mount options "noprefix" and "clone_children" are disallowed. 230 * - Mount options "noprefix", "xattr", "clone_children",
231 * Also, cgroupfs file cgroup.clone_children is not created. 231 * "release_agent" and "name" are disallowed.
232 * 232 *
233 * - When mounting an existing superblock, mount options should 233 * - When mounting an existing superblock, mount options should
234 * match. 234 * match.
@@ -246,7 +246,7 @@ enum {
246 * - "release_agent" and "notify_on_release" are removed. 246 * - "release_agent" and "notify_on_release" are removed.
247 * Replacement notification mechanism will be implemented. 247 * Replacement notification mechanism will be implemented.
248 * 248 *
249 * - "xattr" mount option is deprecated. kernfs always enables it. 249 * - "cgroup.clone_children" is removed.
250 * 250 *
251 * - cpuset: tasks will be kept in empty cpusets when hotplug happens 251 * - cpuset: tasks will be kept in empty cpusets when hotplug happens
252 * and take masks of ancestors with non-empty cpus/mems, instead of 252 * and take masks of ancestors with non-empty cpus/mems, instead of