From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Dichtel Subject: Re: [RFC PATCH net-next v2 0/5] netns: allow to identify peer netns Date: Thu, 25 Sep 2014 09:54:59 +0200 Message-ID: <5423CA53.5020207@6wind.com> References: <1411478430-4989-1-git-send-email-nicolas.dichtel@6wind.com> <54228F8B.2030804@6wind.com> Reply-To: nicolas.dichtel-pdR9zngts4EAvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andy Lutomirski Cc: Network Development , Linux Containers , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Linux API , "David S. Miller" , "Eric W. Biederman" , Stephen Hemminger , Andrew Morton List-Id: linux-api@vger.kernel.org Le 24/09/2014 19:05, Andy Lutomirski a =C3=A9crit : > On Wed, Sep 24, 2014 at 2:31 AM, Nicolas Dichtel > wrote: >> Le 23/09/2014 21:26, Andy Lutomirski a =C3=A9crit : >> >>> On Tue, Sep 23, 2014 at 6:20 AM, Nicolas Dichtel >>> wrote: >>>> >>>> The goal of this serie is to be able to multicast netlink messages= with >>>> an >>>> attribute that identify a peer netns. >>>> This is needed by the userland to interpret some informations cont= ained >>>> in >>>> netlink messages (like IFLA_LINK value, but also some other attrib= utes in >>>> case >>>> of x-netns netdevice (see also >>>> http://thread.gmane.org/gmane.linux.network/315933/focus=3D316064 = and >>>> http://thread.gmane.org/gmane.linux.kernel.containers/28301/focus=3D= 4239)). >>>> >>>> Ids are stored in the parent user namespace. These ids are valid o= nly >>>> inside >>>> this user namespace. The user can retrieve these ids via a new net= link >>>> messages, >>>> but only if peer netns are in the same user namespace. >>> >>> >>> What about the parent / ancestors of the owning userns? Can proces= ses >>> in those usernses see any form of netns id? >> >> With this serie no. I'm not sure if ancestors really needs to be abl= e to >> get these ids. What is your opinion? > > I might be missing some consideration here, but I would hope that ip > link would work correctly if I have a veth interface shared with a > netns that's in a child userns. No, you're right. Will send a v3.