[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110120.232906.199042341.davem@davemloft.net>
Date: Thu, 20 Jan 2011 23:29:06 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: ddvlad@...edu.org
Cc: kaber@...sh.net, netdev@...r.kernel.org
Subject: Re: [PATCH] rtnetlink: fix link attribute validation with
IFLA_GROUP
From: Vlad Dogaru <ddvlad@...edu.org>
Date: Thu, 20 Jan 2011 18:09:10 +0200
> On Thu, Jan 20, 2011 at 02:00:42PM +0100, Patrick McHardy wrote:
>> Fix a few semantic problems with the new IFLA_GROUP attribute.
>>
>> Vlad, could you please give this is a try to see whether it
>> still behaves as expected?
>
>> commit e4b31d565a45e06ed2e51a005f5c00ff1d00725c
>> Author: Patrick McHardy <kaber@...sh.net>
>> Date: Thu Jan 20 13:55:25 2011 +0100
>>
>> 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@...sh.net>
>
> Acked-by: Vlad Dogaru <ddvlad@...edu.org>
Applied, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists