summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-23 15:31:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-23 15:31:47 +0200
commit0e86b007162e1995f52daa350540b77245ba2486 (patch)
tree35c9152c0845c4aed87547493bd04b9266a448da /src
parentwg-quick: better bash completion for non-renaming OSes (diff)
downloadwireguard-monolithic-historical-0e86b007162e1995f52daa350540b77245ba2486.tar.xz
wireguard-monolithic-historical-0e86b007162e1995f52daa350540b77245ba2486.zip
wg-quick: allow enumeration of socket files
These OSes have an unpriv'd ifconfig, so this isn't an even larger info leak.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/wg-quick/darwin.bash2
-rwxr-xr-xsrc/tools/wg-quick/openbsd.bash2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/wg-quick/darwin.bash b/src/tools/wg-quick/darwin.bash
index d1c83c0..8e0a71f 100755
--- a/src/tools/wg-quick/darwin.bash
+++ b/src/tools/wg-quick/darwin.bash
@@ -107,7 +107,7 @@ get_real_interface() {
add_if() {
export WG_TUN_NAME_FILE="/var/run/wireguard/$INTERFACE.name"
- mkdir -m 0700 -p "/var/run/wireguard/"
+ mkdir -p "/var/run/wireguard/"
cmd "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" utun
get_real_interface
}
diff --git a/src/tools/wg-quick/openbsd.bash b/src/tools/wg-quick/openbsd.bash
index b8934d4..d37e250 100755
--- a/src/tools/wg-quick/openbsd.bash
+++ b/src/tools/wg-quick/openbsd.bash
@@ -98,7 +98,7 @@ get_real_interface() {
add_if() {
export WG_TUN_NAME_FILE="/var/run/wireguard/$INTERFACE.name"
- mkdir -m 0700 -p "/var/run/wireguard/"
+ mkdir -p "/var/run/wireguard/"
cmd "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" tun
get_real_interface
}