diff options
author | james | 2008-01-21 19:34:13 +0000 |
---|---|---|
committer | james | 2008-01-21 19:34:13 +0000 |
commit | 0aee9ca7e76887fb5752c15ef63bfb7a356df06e (patch) | |
tree | bd7db9d2c4e4ef4d2cedfdef961208ebd680c2f0 /lladdr.c | |
parent | 7686b1c407f8e78d24669971219f9bc253521744 (diff) | |
download | openvpn-0aee9ca7e76887fb5752c15ef63bfb7a356df06e.zip openvpn-0aee9ca7e76887fb5752c15ef63bfb7a356df06e.tar.gz |
Allow OpenVPN to run completely unprivileged under Linux
by allowing openvpn --mktun to be used with --user and --group
to set the UID/GID of the tun device node. Also added --iproute
option to allow an alternative command to be executed in place
of the default iproute2 command (Alon Bar-Lev).
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2639 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'lladdr.c')
-rw-r--r-- | lladdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,8 +24,8 @@ int set_lladdr(const char *ifname, const char *lladdr, #if defined(TARGET_LINUX) #ifdef CONFIG_FEATURE_IPROUTE openvpn_snprintf (cmd, sizeof (cmd), - IPROUTE_PATH " link set addr %s dev %s", - lladdr, ifname); + "%s link set addr %s dev %s", + iproute_path, lladdr, ifname); #else openvpn_snprintf (cmd, sizeof (cmd), IFCONFIG_PATH " %s hw ether %s", |