linux/net/decnet
Thomas Graf e1701c68c1 [NET]: Fix fib_rules compatibility breakage
Based upon a patch from Patrick McHardy.

The fib_rules netlink attribute policy introduced in 2.6.19 broke
userspace compatibilty. When specifying a rule with "from all"
or "to all", iproute adds a zero byte long netlink attribute,
but the policy requires all addresses to have a size equal to
sizeof(struct in_addr)/sizeof(struct in6_addr), resulting in a
validation error.

Check attribute length of FRA_SRC/FRA_DST in the generic framework
by letting the family specific rules implementation provide the
length of an address. Report an error if address length is non
zero but no address attribute is provided. Fix actual bug by
checking address length for non-zero instead of relying on
availability of attribute.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-03-25 18:48:00 -07:00
..
netfilter [NET] DECNET: Fix whitespace errors. 2007-02-10 23:19:29 -08:00
af_decnet.c [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
dn_dev.c [PATCH] sysctl: remove the proc_dir_entry member for the sysctl tables 2007-02-14 08:10:00 -08:00
dn_fib.c [NET] DECNET: Fix whitespace errors. 2007-02-10 23:19:29 -08:00
dn_neigh.c [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
dn_nsp_in.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
dn_nsp_out.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
dn_route.c [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
dn_rules.c [NET]: Fix fib_rules compatibility breakage 2007-03-25 18:48:00 -07:00
dn_table.c Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2007-02-11 11:38:13 -08:00
dn_timer.c
Kconfig
Makefile
README
sysctl_net_decnet.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
TODO

                       Linux DECnet Project
                      ======================

The documentation for this kernel subsystem is available in the
Documentation/networking subdirectory of this distribution and also
on line at http://www.chygwyn.com/DECnet/

Steve Whitehouse <SteveW@ACM.org>