]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: if we fail to do namespacing, explain why we refuse to continue in a debug...
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Oct 2018 14:55:17 +0000 (16:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Oct 2018 15:08:12 +0000 (17:08 +0200)
src/core/execute.c

index f561bfe11a3c98cdd82ec5f0d0fb295aba61af1d..b531dedf327bf5b4cf3cab0f50963bb009d99da0 100644 (file)
@@ -2431,6 +2431,10 @@ static int apply_mount_namespace(
                         return 0;
                 }
 
+                log_unit_debug(u, "Failed to set up namespace, and refusing to continue since the selected namespacing options alter mount environment non-trivially.\n"
+                               "Bind mounts: %zu, temporary filesystems: %zu, root directory: %s, root image: %s, dynamic user: %s",
+                               n_bind_mounts, context->n_temporary_filesystems, yes_no(root_dir), yes_no(root_image), yes_no(context->dynamic_user));
+
                 return -EOPNOTSUPP;
         }