summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Höppner2017-06-05 18:28:39 +0200
committerTill Höppner2017-06-05 18:28:39 +0200
commitdae072cd503cc51c5429db7c015f393af30f37d3 (patch)
tree4ea23b63eab121760628246dd169a2698d4aaa4c
parentdae0a2ac47db8ef2ac7889671a16ba779061fb67 (diff)
downloadzsh-dae072cd503cc51c5429db7c015f393af30f37d3.tar.gz
zsh-dae072cd503cc51c5429db7c015f393af30f37d3.tar.xz
zsh-dae072cd503cc51c5429db7c015f393af30f37d3.zip
Very slightly restrict access to socket
-rw-r--r--conf.d/99-docker.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf.d/99-docker.zsh b/conf.d/99-docker.zsh
index b2de0b7..903e2bb 100644
--- a/conf.d/99-docker.zsh
+++ b/conf.d/99-docker.zsh
@@ -11,5 +11,6 @@ dadopt() {
local sock="/tmp/$remote.sock"
unlink "$sock"
ssh -nNT -L "$sock:/var/run/docker.sock" "$remote" &
+ chmod og-rwx "$sock"
export DOCKER_HOST="unix://$sock"
}