netlink plugin: Use of less strict rules in link_filter_cb()
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 7 May 2018 15:53:23 +0000 (22:53 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 7 May 2018 16:43:36 +0000 (23:43 +0700)
commit48a98886e51c82ee7c0a502a55ca5f8b0ce999bc
tree92bde54946bd73e0e4a2cf740ead6f4261d59421
parent4ee5bff6ae7203e18e56cce9542891287f7f8b2b
netlink plugin: Use of less strict rules in link_filter_cb()

mnl_attr_validate2() function implements strict equality check of kernel and
userspace structures size. Additional counters was added to 4.6 Linux kernel,
sizes was changed and mismatch can occur.

This patch weakened validation.
Now Collectd just checks if structures, received from kernel space, has enough
data.

Closes: #2510
src/netlink.c