diff options
author | Chen Ridong <chenridong@huawei.com> | 2024-08-15 15:14:08 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-08-20 00:16:17 +0200 |
commit | d1a92d2d6c5dbeba9a87bfb57fa0142cdae7b206 (patch) | |
tree | 60ae9c0a7c40540ebcb47b3d6ac9e3f9115f011a /kernel/cgroup | |
parent | cgroup: Fix incorrect WARN_ON_ONCE() in css_release_work_fn() (diff) | |
download | linux-d1a92d2d6c5dbeba9a87bfb57fa0142cdae7b206.tar.xz linux-d1a92d2d6c5dbeba9a87bfb57fa0142cdae7b206.zip |
cgroup: update some statememt about delegation
The comment in cgroup_file_write is missing some interfaces, such as
'cgroup.threads'. All delegatable files are listed in
'/sys/kernel/cgroup/delegate', so update the comment in cgroup_file_write.
Besides, add a statement that files outside the namespace shouldn't be
visible from inside the delegated namespace.
tj: Reflowed text for consistency.
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r-- | kernel/cgroup/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 244ec600b4d8..c72e18ffbfd8 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -4124,7 +4124,7 @@ static ssize_t cgroup_file_write(struct kernfs_open_file *of, char *buf, * If namespaces are delegation boundaries, disallow writes to * files in an non-init namespace root from inside the namespace * except for the files explicitly marked delegatable - - * cgroup.procs and cgroup.subtree_control. + * eg. cgroup.procs, cgroup.threads and cgroup.subtree_control. */ if ((cgrp->root->flags & CGRP_ROOT_NS_DELEGATE) && !(cft->flags & CFTYPE_NS_DELEGATABLE) && |