]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip vrf: Handle vrf in a cgroup hierarchy
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 16 Feb 2017 16:58:55 +0000 (08:58 -0800)
committerStephen Hemminger <sthemmin@microsoft.com>
Fri, 17 Feb 2017 23:33:24 +0000 (15:33 -0800)
commit46afa6947b4ab89c306703386bbf3379ad464a1f
treed6272485d4685fbbf10011803bb0fc54a860bcfc
parentd754a64aed7f29cbe917f2013cdaf2dda0407cb3
ip vrf: Handle vrf in a cgroup hierarchy

Add support for VRF in a pre-existing hierarchy. For example, if the
current process is running in CGRP/foo/bar, the 'ip vrf exec NAME CMD'
should run CMD in the cgroup CGRP/foo/bar/vrf/NAME.

When listing process ids in a VRF, search for the directory vrf/NAME
regardless of base path (foo/bar/vrf/NAME and vrf/NAME) are still
running against the same vrf NAME.

Reported-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
ip/ipvrf.c