From: Mike Yuan Date: Sun, 6 Jul 2025 18:50:38 +0000 (+0200) Subject: core/exec-invoke: pass "/" instead of "" for cgroup root X-Git-Tag: v258-rc1~63^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db54d1a6b70bac70f61fb140bb77a32e6b29dd54;p=thirdparty%2Fsystemd.git core/exec-invoke: pass "/" instead of "" for cgroup root --- diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 771308848a9..6058553aac8 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -5552,7 +5552,7 @@ int exec_invoke( * memory_pressure_path != NULL in the conditional below. */ if (memory_pressure_path && needs_sandboxing && exec_needs_cgroup_namespace(context)) { memory_pressure_path = mfree(memory_pressure_path); - r = cg_get_path("memory", "", "memory.pressure", &memory_pressure_path); + r = cg_get_path("memory", "/", "memory.pressure", &memory_pressure_path); if (r < 0) { *exit_status = EXIT_MEMORY; return log_oom();