From patchwork Sun Sep 30 18:11:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 188185 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 813F62C00C8 for ; Mon, 1 Oct 2012 04:10:25 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3F7BA24AB0; Sun, 30 Sep 2012 18:10:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rlx+UD-XXsqq; Sun, 30 Sep 2012 18:10:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 235FB249A2; Sun, 30 Sep 2012 18:10:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1DC708F74A for ; Sun, 30 Sep 2012 18:10:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D551E8C755 for ; Sun, 30 Sep 2012 18:10:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LIyYNsDf3wBf for ; Sun, 30 Sep 2012 18:10:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 97C268C477 for ; Sun, 30 Sep 2012 18:10:20 +0000 (UTC) Received: by lahi5 with SMTP id i5so3754413lah.16 for ; Sun, 30 Sep 2012 11:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:reply-to:mime-version:content-type :content-disposition:user-agent; bh=vwcd7sHl/Ue8hbtvxe+G19yvFzz/1QGBoP9onGz2W28=; b=gNoxD3B1MaqPnjP1tCB+apW9q+yn/HwHjLSqCWOWS2IO+arJ1p25VrLA00T43B0tU0 Ht32ezQLuUyuF2M+xVVqE8cc5dDV4rJDYluxovU8eXc0kAr+I1OCbQtVMSduEKs+k7OL thjOVLY3E8pYzrULKQDX5wggGX5bUaAaMAggxTK+VJwGJop7R1ambayop0ArbIFcW9zm RuSYqXLXmBTdf52X1Su0gi/NdTlbeYvtAashywHjHJkMfhjcmfm0LlLHQgrEfUxOq1Ea 203221gzEOGpytmo/pXIXv9trfW9Pl5A+ZfqGvAIKbC2LCT28d3PPvVsqCXKnK2MXmBY xqug== Received: by 10.112.99.74 with SMTP id eo10mr356723lbb.64.1349028618260; Sun, 30 Sep 2012 11:10:18 -0700 (PDT) Received: from gmail.com ([93.100.122.208]) by mx.google.com with ESMTPS id c6sm3932243lbn.1.2012.09.30.11.10.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Sep 2012 11:10:17 -0700 (PDT) Date: Sun, 30 Sep 2012 22:11:04 +0400 From: Valentine Barshak To: buildroot@busybox.net Message-ID: <20120930181104.GA2046@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [Buildroot] [PATCH] openvpn: Fix paths to external utilities X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Valentine Barshak List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This sets paths to ifconfig, route, netstat and ip in the target root filesystem. Otherwise the paths leak from the host and may not match those on the target. Signed-off-by: Valentine Barshak --- package/openvpn/openvpn.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk index 03eabcf..b7e13f5 100644 --- a/package/openvpn/openvpn.mk +++ b/package/openvpn/openvpn.mk @@ -6,7 +6,11 @@ OPENVPN_VERSION = 2.2.2 OPENVPN_SITE = http://swupdate.openvpn.net/community/releases -OPENVPN_CONF_OPT = --enable-small --disable-plugins +OPENVPN_CONF_OPT = --enable-small --disable-plugins \ + --with-ifconfig-path=/sbin/ifconfig \ + --with-route-path=/sbin/route \ + --with-netstat-path=/bin/netstat \ + --with-iproute-path=/bin/ip ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y) OPENVPN_DEPENDENCIES += lzo