chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:19:06 +0000 (10:19 +0100)
commitc5bb60b5fcde6082ed7e591f94f5dee62a23e4e0
tree92ac5249c24720df8bd9fe4c74b8de163266db66
parentabbb87ffdecf445d2bba18e1638f80c96098339e
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.
src/libelogind/sd-login/sd-login.c
src/libelogind/sd-login/test-login.c
src/libsystemd/libsystemd.sym
src/systemd/sd-login.h