]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: Update stale UserNamespacePath= failure message 42512/head
authorChris Down <chris@chrisdown.name>
Mon, 8 Jun 2026 07:34:13 +0000 (16:34 +0900)
committerChris Down <chris@chrisdown.name>
Mon, 8 Jun 2026 07:34:28 +0000 (16:34 +0900)
The message is stale (this is about UserNamespacePath=, not PrivateUsers=) and
this should be an error, not notice given we are going to fail.

src/core/exec-invoke.c

index 9cde9c62e4432e63c594aa92648afb0903c35a51..6e65883ef9ef0763400f16f755ad0b371f8db41d 100644 (file)
@@ -6108,7 +6108,7 @@ int exec_invoke(
                 r = setup_shareable_ns(runtime->shared->userns_storage_socket, CLONE_NEWUSER);
                 if (ERRNO_IS_NEG_PRIVILEGE(r)) {
                         *exit_status = EXIT_USER;
-                        return log_notice_errno(r, "PrivateUsers= is configured, but user namespace setup not permitted, refusing.");
+                        return log_error_errno(r, "UserNamespacePath= is configured, but user namespace setup not permitted, refusing.");
                 }
                 if (r < 0) {
                         *exit_status = EXIT_USER;