diff options
author | Till Höppner | 2017-06-05 18:28:39 +0200 |
---|---|---|
committer | Till Höppner | 2017-06-05 18:28:39 +0200 |
commit | dae072cd503cc51c5429db7c015f393af30f37d3 (patch) | |
tree | 4ea23b63eab121760628246dd169a2698d4aaa4c | |
parent | dae0a2ac47db8ef2ac7889671a16ba779061fb67 (diff) | |
download | zsh-dae072cd503cc51c5429db7c015f393af30f37d3.tar.gz zsh-dae072cd503cc51c5429db7c015f393af30f37d3.tar.xz zsh-dae072cd503cc51c5429db7c015f393af30f37d3.zip |
Very slightly restrict access to socket
-rw-r--r-- | conf.d/99-docker.zsh | 1 |
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" } |