OSDN Git Service

cgroup: disallow xattr, release_agent and name if sane_behavior
authorTejun Heo <tj@kernel.org>
Thu, 13 Feb 2014 11:58:38 +0000 (06:58 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 13 Feb 2014 11:58:38 +0000 (06:58 -0500)
commitd3ba07c3aa9ae3e03329b0a7f1a067c0647aa2af
tree17a4968e339822a520f864fe4127be39e0563f5c
parenta755180bab81c038a6989d7ab746c702f1b3ec03
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>
include/linux/cgroup.h
kernel/cgroup.c