TencentOS-kernel/kernel/cgroup
Wu Tao 4324615803 cgroup-v1: Require capabilities to set release_agent
upstream commit: 24f6008564183aa120d07c03d9289519c2fe02af

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>
2022-03-25 09:54:06 +08:00
..
Makefile sli: Introduce memory and sched latency stat infrastructure 2021-10-29 06:51:52 +00:00
cgroup-internal.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cgroup-v1.c cgroup-v1: Require capabilities to set release_agent 2022-03-25 09:54:06 +08:00
cgroup.c cgroup: bpf: make v1 support eBPF 2022-02-17 12:58:28 +08:00
cpuset.c cgroupfs: support for proc and sys 2021-11-01 15:00:06 +08:00
debug.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
freezer.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
legacy_freezer.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
mbuf.c sli/cpu: introduce longsys check 2021-10-29 06:51:52 +00:00
namespace.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pids.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rdma.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rstat.c Revert "cgroup: Add memory barriers to plug cgroup_rstat_updated() race window" 2021-03-16 16:28:43 +08:00
sli.c sli/cpu: replace tabs with spaces as seperators 2022-01-05 14:51:53 +08:00