From 23eca94508d7cef0c1adbbc37c81050899ca1d60 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 15 May 2018 19:57:43 +0200 Subject: Fix dir permissions --- uapi_darwin.go | 2 +- uapi_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uapi_darwin.go b/uapi_darwin.go index a5f2c3b..1441960 100644 --- a/uapi_darwin.go +++ b/uapi_darwin.go @@ -144,7 +144,7 @@ func UAPIOpen(name string) (*os.File, error) { // check if path exist - err := os.MkdirAll(socketDirectory, 0600) + err := os.MkdirAll(socketDirectory, 0700) if err != nil && !os.IsExist(err) { return nil, err } diff --git a/uapi_linux.go b/uapi_linux.go index 45be0f5..41e5325 100644 --- a/uapi_linux.go +++ b/uapi_linux.go @@ -146,7 +146,7 @@ func UAPIOpen(name string) (*os.File, error) { // check if path exist - err := os.MkdirAll(socketDirectory, 0600) + err := os.MkdirAll(socketDirectory, 0700) if err != nil && !os.IsExist(err) { return nil, err } -- cgit v1.2.3