summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--uapi_darwin.go2
-rw-r--r--uapi_linux.go2
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
}