]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: use exec_context_with_rootfs() at one more place
authorLennart Poettering <lennart@amutable.com>
Tue, 17 Feb 2026 14:46:58 +0000 (15:46 +0100)
committerLennart Poettering <lennart@amutable.com>
Thu, 19 Feb 2026 14:05:15 +0000 (15:05 +0100)
src/core/execute.c

index 6d2291cadd55cb68a8f37df7deb8cafb542056ef..51d6996e72029c0274b24136271916695280ef77 100644 (file)
@@ -356,7 +356,7 @@ const char* exec_get_private_notify_socket_path(const ExecContext *context, cons
         if (!needs_sandboxing)
                 return NULL;
 
-        if (!context->root_directory && !context->root_image && !context->root_directory_as_fd)
+        if (!exec_context_with_rootfs(context))
                 return NULL;
 
         if (!exec_context_get_effective_mount_apivfs(context))