lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6a71762b-3e3b-06e6-9b9b-9b00cdbb2cf8@cumulusnetworks.com>
Date:   Tue, 31 Jan 2017 13:25:32 -0700
From:   David Ahern <dsa@...ulusnetworks.com>
To:     Cong Wang <xiyou.wangcong@...il.com>,
        Theuns Verwoerd <theuns.verwoerd@...iedtelesis.co.nz>
Cc:     Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH] rtnetlink: Handle IFLA_MASTER parameter when processing
 rtnl_newlink

On 1/30/17 11:49 PM, Cong Wang wrote:
> On Mon, Jan 30, 2017 at 3:23 PM, Theuns Verwoerd
> <theuns.verwoerd@...iedtelesis.co.nz> wrote:
>> @@ -2653,6 +2653,11 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh)
>>                         if (err < 0)
>>                                 goto out_unregister;
>>                 }
>> +               if (tb[IFLA_MASTER]) {
>> +                       err = do_set_master(dev, nla_get_u32(tb[IFLA_MASTER]));
>> +                       if (err)
>> +                               goto out_unregister;
>> +               }
>>  out:
>>                 if (link_net)
>>                         put_net(link_net);
> 
> Not sure if it is too late to call do_set_master() after
> dev_change_net_namespace().
> 

The master device index is relative to a namespace. If both are given then the namespace change must be done first.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ