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:
e95e909
)
sd-rtnl: recv_message - log when dropping message
author
Tom Gundersen
<teg@jklm.no>
Sun, 28 Dec 2014 23:19:36 +0000
(
00:19
+0100)
committer
Tom Gundersen
<teg@jklm.no>
Sun, 28 Dec 2014 23:19:36 +0000
(
00:19
+0100)
We drop messages received from the wrong uid/pid, log this at debug level.
src/libsystemd/sd-rtnl/rtnl-message.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-rtnl/rtnl-message.c
b/src/libsystemd/sd-rtnl/rtnl-message.c
index
9099440
..
cfb2af3
100644
(file)
--- a/
src/libsystemd/sd-rtnl/rtnl-message.c
+++ b/
src/libsystemd/sd-rtnl/rtnl-message.c
@@
-1363,6
+1363,8
@@
static int socket_recv_message(int fd, struct iovec *iov, uint32_t *_group, bool
/* from the kernel */
if (ucred->uid == 0 && ucred->pid == 0)
auth = true;
+ else
+ log_debug("rtnl: ignoring message from uid %u pid %u", ucred->uid, ucred->pid);
} else if (cmsg->cmsg_level == SOL_NETLINK &&
cmsg->cmsg_type == NETLINK_PKTINFO &&
cmsg->cmsg_len == CMSG_LEN(sizeof(struct nl_pktinfo))) {