]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: add clearer debug log when setting up ExecDirectories symlinks fails
authorLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 27 Jan 2022 14:08:44 +0000 (14:08 +0000)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 27 Jan 2022 14:21:29 +0000 (14:21 +0000)
src/core/namespace.c

index f3c6b58f8672f696d86248b3191d086033c01c06..c8dc6c0503a890ab681862ca5313722f61f82117 100644 (file)
@@ -1804,7 +1804,7 @@ static int apply_mounts(
          * exist, which means this will be a no-op. */
         r = create_symlinks_from_tuples(root, exec_dir_symlinks);
         if (r < 0)
-                return r;
+                return log_debug_errno(r, "Failed to set up ExecDirectories symlinks inside mount namespace: %m");
 
         /* Create a deny list we can pass to bind_mount_recursive() */
         deny_list = new(char*, (*n_mounts)+1);