diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-21 20:02:34 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-22 16:28:02 +0200 |
commit | 7cc5ef5f1811c539ae7f20255c2a093f413cc64f (patch) | |
tree | 57e536e4dd6f365b614f2ae4e9559070c37e4bf0 /src/core/namespace.h | |
parent | man: tweak description of #12247 a bit (diff) | |
download | systemd-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.h | 3 |
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, |