Patrick McHardy ffa934f192 rtnetlink: fix link attribute validation with IFLA_GROUP
rtnl_group_changelink() is invoked by rtnl_newlink() before the link
attributes have been validated. Additionally the group changes are
performed even if NLM_F_CREATE is specified and a new link is
created, while more reasonable semantics would be to set the group
value on the newly created link.

Fix both problems by moving the rtnl_group_changelink() invocation
down to the handling of non-existant links without NLM_F_CREATE()
and add a dev_set_group() call to rtnl_create_link().

Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Vlad Dogaru <ddvlad@rosedu.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-01-20 23:28:54 -08:00
..
2010-10-25 13:09:44 -07:00
2011-01-06 11:16:54 -08:00
2011-01-12 19:00:40 -08:00
2011-01-20 16:59:34 -08:00
2010-10-21 15:44:13 +02:00
2010-09-23 14:33:39 -07:00
2010-12-19 21:59:35 -08:00
2011-01-10 13:33:17 -08:00
2010-11-15 13:24:06 -05:00
2011-01-20 16:59:32 -08:00
2010-12-16 13:44:24 -08:00
2010-10-15 15:53:27 +02:00