Skip to content

Commit a372b41

Browse files
poetteringbluca
authored andcommitted
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 95116bd) (cherry picked from commit 95c20d0) (cherry picked from commit 5b6e914) (cherry picked from commit b2d59a9) (cherry picked from commit 91a643a)
1 parent 920c5a8 commit a372b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nspawn/nspawn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4274,7 +4274,7 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r
42744274

42754275
ucred = CMSG_FIND_DATA(&msghdr, SOL_SOCKET, SCM_CREDENTIALS, struct ucred);
42764276
if (!ucred || ucred->pid != inner_child_pid) {
4277-
log_debug("Received notify message without valid credentials. Ignoring.");
4277+
log_debug("Received notify message from process that is not the payload's PID 1. Ignoring.");
42784278
return 0;
42794279
}
42804280

0 commit comments

Comments
 (0)