summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-23 00:04:43 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-23 09:33:17 +0100
commit95116bdfd5d45cc1a7c6588e6b8bdcb0d0e007a6 (patch)
tree245f20d69abf211bb21b81e71791d5842ce3b34e /src
parentnspawn: fix userns_mkdir() invocation (diff)
downloadsystemd-95116bdfd5d45cc1a7c6588e6b8bdcb0d0e007a6.tar.xz
systemd-95116bdfd5d45cc1a7c6588e6b8bdcb0d0e007a6.zip
nspawn: improve log message on bad incoming sd_notify() message
It's the PID that is wrong, not the UID/GID, be precise.
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 0a8f1af821..91700d9282 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -4653,7 +4653,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;
}