From 5b6e91434eb6b253514516044e372f744ac2e364 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Sat, 23 Nov 2024 00:04:43 +0100
Subject: [PATCH 1029/1160] nspawn: improve log message on bad incoming
sd_notify() message
It's the PID that is wrong, not the UID/GID, be precise.
(cherry picked from commit 95116bdfd5d45cc1a7c6588e6b8bdcb0d0e007a6)
(cherry picked from commit 95c20d0b627654626924eadaf65bc1825bb38701)
src/nspawn/nspawn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -4220,7 +4220,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;
}
--
2.33.0