]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: improve log message on bad incoming sd_notify() message
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Nov 2024 23:04:43 +0000 (00:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Nov 2024 13:26:56 +0000 (14:26 +0100)
It's the PID that is wrong, not the UID/GID, be precise.

(cherry picked from commit 95116bdfd5d45cc1a7c6588e6b8bdcb0d0e007a6)

src/nspawn/nspawn.c

index a8d2c8a3a43d96bcaf09146529b73a0dec16132f..4e15112addf0a67d88450ff322393470402a830c 100644 (file)
@@ -4538,7 +4538,7 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r
 
         ucred = CMSG_FIND_DATA(&msghdr, SOL_SOCKET, SCM_CREDENTIALS, struct ucred);
         if (!ucred || ucred->pid != inner_child_pid) {
-                log_debug("Received notify message without valid credentials. Ignoring.");
+                log_debug("Received notify message from process that is not the payload's PID 1. Ignoring.");
                 return 0;
         }