summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs
diff options
context:
space:
mode:
authorDenton Gentry <dgentry@tailscale.com>2021-07-09 04:40:41 -0700
committerDenton Gentry <denny@geekhold.com>2021-07-14 10:01:14 -0700
commit1896bf99d92bab4704f8078e9344d0557236d3f7 (patch)
treea667ff61ce2970254d2e72de323a38c97fa18dc1 /control/controlknobs
parentd3697053c90c8de609be8b6a2e882c9d7af356db (diff)
downloadtailscale-1896bf99d92bab4704f8078e9344d0557236d3f7.tar.xz
tailscale-1896bf99d92bab4704f8078e9344d0557236d3f7.zip
netns_linux: No namespace for localhost.
Connections to a control server or log server on localhost, used in a number of tests, are working right now because the calls to SO_MARK in netns fail for non-root but then we ignore the failure when running in tests. Unfortunately that failure in SO_MARK also affects container environments without CAP_NET_ADMIN, breaking Tailscale connectivity. We're about to fix netns to recognize when SO_MARK doesn't work and use SO_BINDTODEVICE instead. Doing so makes tests fail, as their sockets now BINDTODEVICE of the default route and cannot connect to localhost. Add support to skip namespacing for localhost connections, which Darwin and Windows already do. This is not conditional on running within a test, if you tell tailscaled to connect to localhost it will automatically use a non-namespaced socket to do so. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions