cgroup: clarify cgroup_css_set_fork()
authorChristian Brauner <brauner@kernel.org>
Mon, 21 Feb 2022 15:16:39 +0000 (16:16 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 22 Feb 2022 17:35:19 +0000 (07:35 -1000)
commit6d3971dab239e7db1691690a02ce6becf30689cb
tree9cb54a584b8b6aad1bda28ae660c779e3b4af5c4
parent05c7b7a92cc87ff8d7fde189d0fade250697573c
cgroup: clarify cgroup_css_set_fork()

With recent fixes for the permission checking when moving a task into a cgroup
using a file descriptor to a cgroup's cgroup.procs file and calling write() it
seems a good idea to clarify CLONE_INTO_CGROUP permission checking with a
comment.

Cc: Tejun Heo <tj@kernel.org>
Cc: <cgroups@vger.kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c