projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd290c
)
nspawn: improve log message on bad incoming sd_notify() message
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Nov 2024 23:04:43 +0000
(
00:04
+0100)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 23 Nov 2024 08:33:17 +0000
(17:33 +0900)
It's the PID that is wrong, not the UID/GID, be precise.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index 0a8f1af821dffe88533e9ef189979353e4286600..91700d92827ba35cf7d7af7064274a1be194640a 100644
(file)
--- 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;
}