]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
python: binding to read and set systemd_default_cgroup
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 13 Feb 2023 06:49:59 +0000 (06:49 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 16 Feb 2023 16:50:12 +0000 (09:50 -0700)
commit67805afc3f02495ab32fdc640f062c48b6e6b8f0
tree6b81434e5f0cbeafd686130616cfbd931d9529ad
parent4fd55b1bbdfb557fcae31a849acf537b27325fb7
python: binding to read and set systemd_default_cgroup

Add an python binding that reads /run/libcgroup/systemd and if the file
exists, sets the systemd_default_cgroup. Then on all the paths
constructed, has the systemd_default_cgroup appended to it.  This is
used when cgroup sub-tree is constructed for systemd delegation.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/python/cgroup.pxd
src/python/libcgroup.pyx