linux/net/netlink
Patrick McHardy ea5693ccc5 netlink: allow empty nested attributes
validate_nla() currently doesn't allow empty nested attributes. This
makes userspace code unnecessarily complicated when starting and ending
the nested attribute is done by generic upper level code and the inner
attributes are dumped by a module.

Add a special case to accept empty nested attributes. When the nested
attribute is non empty, the same checks as before are performed.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-28 03:05:19 -08:00
..
af_netlink.c net: Make sure BHs are disabled in sock_prot_inuse_add() 2008-11-24 14:05:22 -08:00
attr.c netlink: allow empty nested attributes 2008-11-28 03:05:19 -08:00
genetlink.c
Makefile