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/test/test-ns.c | |
parent | 35b966ca23da240d30ac18ab615e2d0ec081681a (diff) | |
download | systemd-7cc5ef5f1811c539ae7f20255c2a093f413cc64f.tar.gz systemd-7cc5ef5f1811c539ae7f20255c2a093f413cc64f.tar.bz2 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/test/test-ns.c')
-rw-r--r-- | src/test/test-ns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-ns.c b/src/test/test-ns.c index d3dbb54ca1..e9233a1643 100644 --- a/src/test/test-ns.c +++ b/src/test/test-ns.c @@ -75,7 +75,8 @@ int main(int argc, char *argv[]) { PROTECT_HOME_NO, PROTECT_SYSTEM_NO, 0, - 0); + 0, + NULL); if (r < 0) { log_error_errno(r, "Failed to setup namespace: %m"); |