Skip to contentSkip to conversation

openvpn: Fix paths to external utilities

PATCH New Valentine Barshak 2 participants 2 messages Sep 30, 2012 – Oct 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 openvpn: Fix paths to external utilities

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.

---
 package/openvpn/openvpn.mk | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
package/openvpn/openvpn.mk +10 -1
index 03eabcf..1c6e6ec 100644
@@ -6,7 +6,16 @@
 
 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
+
+ifeq ($(BR2_PACKAGE_IPROUTE2),y)
+OPENVPN_CONF_OPT += --with-iproute-path=/sbin/ip
+else
+OPENVPN_CONF_OPT += --with-iproute-path=/bin/ip
+endif
 
 ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
 	OPENVPN_DEPENDENCIES += lzo
Signature · 1 line
1.7.11.4
#1 lore raw

PATCH v2 1/1 openvpn: Fix paths to external utilities

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Valentine" == Valentine Barshak <[email protected]> writes:

Valentine> This sets paths to ifconfig, route, netstat and ip Valentine> in the target root filesystem.

Valentine> Otherwise the paths leak from the host and may not Valentine> match those on the target.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard