Comment 8 for bug 1654676

Revision history for this message
Christian Brauner (cbrauner) wrote : Re: [Bug 1654676] Re: lxc-user-nic does not ensure that target netns is caller-owned

Hi Jann,

I managed to reproduce this following the steps you outlined. I will wait for
@Serge to figure out why he was not able to reproduce this.

Christian

On Fri, Jan 13, 2017 at 10:49:08AM -0000, Jann Horn (Google) wrote:
> I'm testing on Ubuntu Server 16.10, with kernel 4.8.0-32-generic. In
> case it helps, here's an execution with bridge setup and various pieces
> of system information.
>
> Script started on Fri 13 Jan 2017 11:37:55 AM CET
> user@ubuntu:~$ sudo bash
> [sudo] password for user:
> root@ubuntu:~# ip link add name lxcbr0 type bridge
> root@ubuntu:~# ip link set lxcbr0 up
> root@ubuntu:~# exit
> user@ubuntu:~$ /usr/lib/x86_64-linux-gnu/lxc/lxc-user-nic a b $$ veth lxcbr0 foobar
> foobar:vethQ1C4AQ
> user@ubuntu:~$ ip link show foobar
> 6: foobar@vethQ1C4AQ: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
> link/ether 8e:6e:3b:96:66:c6 brd ff:ff:ff:ff:ff:ff
> user@ubuntu:~$ uname -a
> Linux ubuntu 4.8.0-32-generic #34-Ubuntu SMP Tue Dec 13 14:30:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
> user@ubuntu:~$ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=16.10
> DISTRIB_CODENAME=yakkety
> DISTRIB_DESCRIPTION="Ubuntu 16.10"
> user@ubuntu:~$ cat /etc/apt/sources.list

<snip>