Skip to content

Commit 91a643a

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)
1 parent 59b7b0d commit 91a643a

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
@@ -4287,7 +4287,7 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r
42874287

42884288
ucred = CMSG_FIND_DATA(&msghdr, SOL_SOCKET, SCM_CREDENTIALS, struct ucred);
42894289
if (!ucred || ucred->pid != inner_child_pid) {
4290-
log_debug("Received notify message without valid credentials. Ignoring.");
4290+
log_debug("Received notify message from process that is not the payload's PID 1. Ignoring.");
42914291
return 0;
42924292
}
42934293

0 commit comments

Comments
 (0)