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] [day] [month] [year] [list]
Date:   Tue, 15 Oct 2019 09:25:37 -0700
From:   Stephen Hemminger <stephen@...workplumber.org>
To:     Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc:     netdev@...r.kernel.org, dsahern@...il.com,
        Petr Oros <poros@...hat.com>
Subject: Re: [PATCH iproute2] ipnetns: enable to dump nsid conversion table

On Tue, 15 Oct 2019 09:33:24 +0200
Nicolas Dichtel <nicolas.dichtel@...nd.com> wrote:

> Le 14/10/2019 à 22:15, Stephen Hemminger a écrit :
> > On Mon,  7 Oct 2019 15:44:47 +0200
> > Nicolas Dichtel <nicolas.dichtel@...nd.com> wrote:
> >   
> >> This patch enables to dump/get nsid from a netns into another netns.
> >>
> >> Example:
> >> $ ./test.sh
> >> + ip netns add foo
> >> + ip netns add bar
> >> + touch /var/run/netns/init_net
> >> + mount --bind /proc/1/ns/net /var/run/netns/init_net
> >> + ip netns set init_net 11
> >> + ip netns set foo 12
> >> + ip netns set bar 13
> >> + ip netns
> >> init_net (id: 11)
> >> bar (id: 13)
> >> foo (id: 12)
> >> + ip -n foo netns set init_net 21
> >> + ip -n foo netns set foo 22
> >> + ip -n foo netns set bar 23
> >> + ip -n foo netns
> >> init_net (id: 21)
> >> bar (id: 23)
> >> foo (id: 22)
> >> + ip -n bar netns set init_net 31
> >> + ip -n bar netns set foo 32
> >> + ip -n bar netns set bar 33
> >> + ip -n bar netns
> >> init_net (id: 31)
> >> bar (id: 33)
> >> foo (id: 32)
> >> + ip netns list-id target-nsid 12
> >> nsid 21 current-nsid 11 (iproute2 netns name: init_net)
> >> nsid 22 current-nsid 12 (iproute2 netns name: foo)
> >> nsid 23 current-nsid 13 (iproute2 netns name: bar)
> >> + ip -n foo netns list-id target-nsid 21
> >> nsid 11 current-nsid 21 (iproute2 netns name: init_net)
> >> nsid 12 current-nsid 22 (iproute2 netns name: foo)
> >> nsid 13 current-nsid 23 (iproute2 netns name: bar)
> >> + ip -n bar netns list-id target-nsid 33 nsid 32
> >> nsid 32 current-nsid 32 (iproute2 netns name: foo)
> >> + ip -n bar netns list-id target-nsid 31 nsid 32
> >> nsid 12 current-nsid 32 (iproute2 netns name: foo)
> >> + ip netns list-id nsid 13
> >> nsid 13 (iproute2 netns name: bar)
> >>
> >> CC: Petr Oros <poros@...hat.com>
> >> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
> >> ---
> >>  include/libnetlink.h |   5 +-
> >>  ip/ip_common.h       |   1 +
> >>  ip/ipnetns.c         | 115 +++++++++++++++++++++++++++++++++++++++++--
> >>  lib/libnetlink.c     |  15 ++++--
> >>  4 files changed, 126 insertions(+), 10 deletions(-)
> >>  
> > 
> > Applied. Please send another patch to update man page.
> >   
> Yes, I will do.
> I don't see the patch on kernel.org, am I missing something?

Just pushed, was running a bunch of other stuff

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ