summaryrefslogtreecommitdiffstats
path: root/src/core/namespace.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-05-21 20:02:34 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-05-22 16:28:02 +0200
commit7cc5ef5f1811c539ae7f20255c2a093f413cc64f (patch)
tree57e536e4dd6f365b614f2ae4e9559070c37e4bf0 /src/core/namespace.h
parentman: tweak description of #12247 a bit (diff)
downloadsystemd-7cc5ef5f1811c539ae7f20255c2a093f413cc64f.tar.xz
systemd-7cc5ef5f1811c539ae7f20255c2a093f413cc64f.zip
pid1: improve message when setting up namespace fails
I covered the most obvious paths: those where there's a clear problem with a path specified by the user. Prints something like this (at error level): May 21 20:00:01.040418 systemd[125871]: bad-workdir.service: Failed to set up mount namespacing: /run/systemd/unit-root/etc/tomcat9/Catalina: No such file or directory May 21 20:00:01.040456 systemd[125871]: bad-workdir.service: Failed at step NAMESPACE spawning /bin/true: No such file or directory Fixes #10972.
Diffstat (limited to 'src/core/namespace.h')
-rw-r--r--src/core/namespace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/namespace.h b/src/core/namespace.h
index 022bdb6142..73fcb3fc82 100644
--- a/src/core/namespace.h
+++ b/src/core/namespace.h
@@ -86,7 +86,8 @@ int setup_namespace(
ProtectHome protect_home,
ProtectSystem protect_system,
unsigned long mount_flags,
- DissectImageFlags dissected_image_flags);
+ DissectImageFlags dissected_image_flags,
+ char **error_path);
int setup_tmp_dirs(
const char *id,