projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007e4b5
)
manager: make use of pid_is_valid() where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Fri, 5 Jan 2018 11:19:22 +0000
(12:19 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 11 Jan 2018 14:12:16 +0000
(15:12 +0100)
src/core/manager.c
patch
|
blob
|
history
diff --git
a/src/core/manager.c
b/src/core/manager.c
index
6f50b17
..
35cd9ee
100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-1977,7
+1977,7
@@
static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t
}
}
- if (!ucred ||
ucred->pid <= 0
) {
+ if (!ucred ||
!pid_is_valid(ucred->pid)
) {
log_warning("Received notify message without valid credentials. Ignoring.");
return 0;
}