core/exec-invoke: pass "/" instead of "" for cgroup root

This commit is contained in:
Mike Yuan
2025-07-12 17:32:32 +02:00
parent 375d80b04a
commit db54d1a6b7
+1 -1
View File
@@ -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();