From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH iproute2] Allow to configure /var/run/netns directory Date: Wed, 23 May 2018 15:30:58 -0700 Message-ID: <20180523153058.7d5e021c@xeon-e3> References: <20180518224400.201511-1-pavelm@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, lorenzo@google.com To: Pavel Maltsev Return-path: Received: from mail-pf0-f174.google.com ([209.85.192.174]:35153 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933083AbeEWWbB (ORCPT ); Wed, 23 May 2018 18:31:01 -0400 Received: by mail-pf0-f174.google.com with SMTP id x9-v6so11197282pfm.2 for ; Wed, 23 May 2018 15:31:01 -0700 (PDT) In-Reply-To: <20180518224400.201511-1-pavelm@google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 18 May 2018 15:44:00 -0700 Pavel Maltsev wrote: > Currently NETNS_RUN_DIR is hardcoded and refers to /var/run/netns. > However, some systems (e.g. Android) doesn't have /var > which results in error attempts to create network namespaces on these > systems. This change makes NETNS_RUN_DIR configurable at build time > by allowing to pass environment variable to make command. > Also, this change makes /etc/netns directory configurable through > NETNS_ETC_DIR environment variable. > > For example: ./configure && NETNS_RUN_DIR=/mnt/vendor/netns make > > Tested: verified that iproute2 with configuration mentioned above > creates namespaces in /mnt/vendor/netns > > Signed-off-by: Pavel Maltsev Applied, thanks.