]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api: Add support for "cgroup" controller in cgroup v2
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 14 Feb 2023 19:58:59 +0000 (12:58 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 22 Feb 2023 16:18:21 +0000 (09:18 -0700)
commitb09f6e750ecdf605f5b9cae97e6b831b6ecf187d
tree4cf7849a28a8276dc928711c450ef6bfa7263143
parent6bb000d2dc90eb0e9966bba0aaf70c0daa655e09
api: Add support for "cgroup" controller in cgroup v2

The "cgroup" controller has settings that the user may want to
read/write, e.g. cgroup.controllers, cgroup.subtree_control,
cgroup.procs, etc.

Add support for this controller when the cgroup v2 mount table is
parsed by creating a custom controller for the "cgroup" settings.
Note that this feature has not been added to cgroup v1 and cgroup v1
will continue to have limited access to the cgroup.* files.

Reported-by: Justin Israel <justinisrael@gmail.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/api.c
tests/gunit/008-cgroup_process_v2_mount.cpp