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:
@@ -367,6 +367,7 @@ if ( [ ! -c /dev/net/tun ] ); then
|
|||||||
mkdir -m 755 /dev/net
|
mkdir -m 755 /dev/net
|
||||||
fi
|
fi
|
||||||
mknod /dev/net/tun c 10 200
|
mknod /dev/net/tun c 10 200
|
||||||
|
chmod 0755 /dev/net/tun
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load the tun module if not already loaded
|
# Load the tun module if not already loaded
|
||||||
|
Reference in New Issue
Block a user