libnl/lib
Thomas Haller dfd0a80ec8 route: don't enforce minlen in inet6_parse_protinfo() (IFLA_PROTINFO) and inet_parse_af() (IFLA_AF_SPEC)
Older kernel version might have fewer values defined, so they would send
netlink messages that got rejected. Only check that at least one value
got sent.

This is especially grave as libnl uses an internal copy of the
kernel header files. Thus not only it is bound to the installed kernel
headers but to the libnl internal header copies that might easily be out
of sync with the kernel.

This affects IFLA_PROTINFO, inet6_parse_protinfo():
  - tb[IFLA_INET6_CONF], expecting DEVCONF_MAX
  - tb[IFLA_INET6_STATS], expecting __IPSTATS_MIB_MAX
  - tb[IFLA_INET6_ICMP6STATS], expecting __ICMP6_MIB_MAX
and IFLA_AF_SPEC, inet_parse_af():
  - tb[IFLA_INET_CONF], expecting IPV4_DEVCONF_MAX

https://bugzilla.redhat.com/show_bug.cgi?id=1062533

Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-03-21 12:27:18 +01:00
..
cli add fq_codel cli module 2013-11-22 10:13:40 +01:00
fib_lookup Use thread-safe strerror_r() instead of strerror() 2013-02-28 13:07:04 +01:00
genl genl: Fix cb reference leak in genl_ctrl_probe_by_name() 2013-04-02 11:51:53 +02:00
idiag More safely parse vegas info and mem info. 2013-07-25 17:59:56 -07:00
netfilter netfilter/ct: support optional CTA_ZONE attribute 2013-09-05 17:39:03 +02:00
route route: don't enforce minlen in inet6_parse_protinfo() (IFLA_PROTINFO) and inet_parse_af() (IFLA_AF_SPEC) 2014-03-21 12:27:18 +01:00
.gitignore Added lex.yy.c to .gitignore 2012-08-30 03:19:04 +06:00
addr.c do not compile some address families when not available 2013-11-09 01:07:19 +01:00
attr.c The commit 6a8d90f5fe "attr: Allow attribute type 0" intended to 2013-11-29 09:41:28 +01:00
cache.c cache: Return -NLE_PROTO_MISMATCH if socket provided mismatches cache protocol 2013-07-01 12:41:42 +02:00
cache_mngr.c Handle -NLE_AGAIN in nl_cache_mngr_data_ready 2013-06-27 01:12:36 +02:00
cache_mngt.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
data.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
error.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
handlers.c nl_cb: store nl_cb_type in struct nl_cb 2013-09-05 17:46:00 +02:00
hash.c Hash: Properly prefix hash functions 2012-11-10 10:22:26 +01:00
hashtable.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
Makefile.am build: fix build failure when using different build dir (make distcheck) 2013-12-17 18:26:31 +02:00
msg.c Remove extra memset from __nlmsg_alloc 2013-11-08 17:15:16 +01:00
nl.c nl: Fix comment typo on recvmsgs 2013-10-01 18:23:54 +02:00
object.c obj: Check for NULL pointer in nl_object_clone() 2013-10-22 14:20:41 +02:00
socket.c socket: Warn via debug message if local port namespace is exhausted 2013-06-28 18:53:16 +02:00
utils.c utils: indicate capability NL_CAPABILITY_ROUTE_BUILD_MSG_SET_SCOPE 2014-03-13 13:16:51 +01:00
version.c Run-time version information is now available 2012-08-30 03:19:04 +06:00