We drop messages received from the wrong uid/pid, log this at debug level.
/* from the kernel */
if (ucred->uid == 0 && ucred->pid == 0)
auth = true;
/* 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))) {
} else if (cmsg->cmsg_level == SOL_NETLINK &&
cmsg->cmsg_type == NETLINK_PKTINFO &&
cmsg->cmsg_len == CMSG_LEN(sizeof(struct nl_pktinfo))) {