Fix unpriviligied user to use tun device under docker

I've added a chmod to tun device to allow unprivileged docker containers to use tun device and send traffic through the vpn.
Related to this issue: https://github.com/haugene/docker-transmission-openvpn/issues/41
This commit is contained in:
ducseb
2018-10-18 11:51:24 +02:00
committed by GitHub
parent b75e11340a
commit 3a0d891a58

View File

@@ -367,6 +367,7 @@ if ( [ ! -c /dev/net/tun ] ); then
mkdir -m 755 /dev/net
fi
mknod /dev/net/tun c 10 200
chmod 0755 /dev/net/tun
fi
# Load the tun module if not already loaded