From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752149AbaIYHzF (ORCPT ); Thu, 25 Sep 2014 03:55:05 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:63712 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751800AbaIYHzC (ORCPT ); Thu, 25 Sep 2014 03:55:02 -0400 Message-ID: <5423CA53.5020207@6wind.com> Date: Thu, 25 Sep 2014 09:54:59 +0200 From: Nicolas Dichtel Reply-To: nicolas.dichtel@6wind.com Organization: 6WIND User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Andy Lutomirski CC: Network Development , Linux Containers , "linux-kernel@vger.kernel.org" , Linux API , "David S. Miller" , "Eric W. Biederman" , Stephen Hemminger , Andrew Morton Subject: Re: [RFC PATCH net-next v2 0/5] netns: allow to identify peer netns References: <1411478430-4989-1-git-send-email-nicolas.dichtel@6wind.com> <54228F8B.2030804@6wind.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 24/09/2014 19:05, Andy Lutomirski a écrit : > On Wed, Sep 24, 2014 at 2:31 AM, Nicolas Dichtel > wrote: >> Le 23/09/2014 21:26, Andy Lutomirski a écrit : >> >>> 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 contained >>>> in >>>> netlink messages (like IFLA_LINK value, but also some other attributes in >>>> case >>>> of x-netns netdevice (see also >>>> http://thread.gmane.org/gmane.linux.network/315933/focus=316064 and >>>> http://thread.gmane.org/gmane.linux.kernel.containers/28301/focus=4239)). >>>> >>>> Ids are stored in the parent user namespace. These ids are valid only >>>> inside >>>> this user namespace. The user can retrieve these ids via a new netlink >>>> messages, >>>> but only if peer netns are in the same user namespace. >>> >>> >>> What about the parent / ancestors of the owning userns? Can processes >>> in those usernses see any form of netns id? >> >> With this serie no. I'm not sure if ancestors really needs to be able 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.