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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpW1+UK+ykB3s-yqi+ozR-BuRTvQ6hX1XmkMvAXSWEgkrg@mail.gmail.com>
Date:   Mon, 30 Jan 2017 22:49:36 -0800
From:   Cong Wang <xiyou.wangcong@...il.com>
To:     Theuns Verwoerd <theuns.verwoerd@...iedtelesis.co.nz>
Cc:     Linux Kernel Network Developers <netdev@...r.kernel.org>,
        David Ahern <dsa@...ulusnetworks.com>
Subject: Re: [PATCH] rtnetlink: Handle IFLA_MASTER parameter when processing rtnl_newlink

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().

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ