summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2025-01-06 09:54:13 +0100
committerLennart Poettering <lennart@poettering.net>2025-01-06 09:54:41 +0100
commitdd445d6e99a5aa62caa272174d3577c0f7e49c03 (patch)
tree7120e77d0fc431627a42c46f2957d4ec147e7320 /src/test
parentsd-login: make use of getpeerpidref() and cg_pidref_get_*() (diff)
downloadsystemd-dd445d6e99a5aa62caa272174d3577c0f7e49c03.tar.xz
systemd-dd445d6e99a5aa62caa272174d3577c0f7e49c03.zip
cgroup-util: add remoteness checks to all cg_pidref_get_xyz() calls
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-cgroup-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c
index 9fa3ddf9d1..0170cb279b 100644
--- a/src/test/test-cgroup-util.c
+++ b/src/test/test-cgroup-util.c
@@ -210,11 +210,11 @@ TEST(proc) {
if (pidref_is_kernel_thread(&pid) != 0)
continue;
- cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, pid.pid, &path);
+ cg_pidref_get_path(SYSTEMD_CGROUP_CONTROLLER, &pid, &path);
cg_pid_get_path_shifted(pid.pid, NULL, &path_shifted);
cg_pidref_get_owner_uid(&pid, &uid);
cg_pidref_get_session(&pid, &session);
- cg_pid_get_unit(pid.pid, &unit);
+ cg_pidref_get_unit(&pid, &unit);
cg_pid_get_user_unit(pid.pid, &user_unit);
cg_pid_get_machine_name(pid.pid, &machine);
cg_pid_get_slice(pid.pid, &slice);