]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cgroup-v1: Require capabilities to set release_agent
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 20 Jan 2022 17:04:01 +0000 (11:04 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Feb 2022 11:39:54 +0000 (12:39 +0100)
commit9c9dbb954e618e3d9110f13cc02c5db1fb73ea5d
tree7252f129cf760d147811d2826642c499397e1954
parent3a63b718200be5b1997f6eb28e5e688ec58ec41b
cgroup-v1: Require capabilities to set release_agent

commit 24f6008564183aa120d07c03d9289519c2fe02af upstream.

The cgroup release_agent is called with call_usermodehelper.  The function
call_usermodehelper starts the release_agent with a full set fo capabilities.
Therefore require capabilities when setting the release_agaent.

Reported-by: Tabitha Sable <tabitha.c.sable@gmail.com>
Tested-by: Tabitha Sable <tabitha.c.sable@gmail.com>
Fixes: 81a6a5cdd2c5 ("Task Control Groups: automatic userspace notification of idle cgroups")
Cc: stable@vger.kernel.org # v2.6.24+
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/cgroup/cgroup-v1.c