]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/libsystemd.sym
sd-login: add new sd_pid_get_cgroup() API
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Sep 2015 07:54:14 +0000 (09:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 5 Sep 2015 12:56:23 +0000 (14:56 +0200)
commitf5aaf575626022313b07d505699fa1af25d248ac
tree72f56593684aff2f66c67f079886f6de3ac30372
parent19af675e99d32172b58f1c91c8281ba2efd5d863
sd-login: add new sd_pid_get_cgroup() API

This adds a new sd_pid_get_cgroup() call to sd-login which may be used
to query the control path of a process. This is useful for programs when
making use of delegation units, in order to figure out which subtree has
been delegated.

In light of the unified control group hierarchy this is finally safe to
do, hence let's add a proper API for it, to make it easier to use this.
Makefile-man.am
man/sd_pid_get_session.xml
src/libsystemd/libsystemd.sym
src/libsystemd/sd-login/sd-login.c
src/libsystemd/sd-login/test-login.c
src/systemd/sd-login.h