From e2742a5e94abc8dd31f61cf03dbe6b24406bfc63 Mon Sep 17 00:00:00 2001 From: Aphral Griffin Date: Fri, 24 Nov 2023 16:25:15 +0000 Subject: [PATCH] fix permission in os.go --- src/core/os.go | 2 +- .../integration/vendor/github.com/nginx/agent/v2/src/core/os.go | 2 +- .../performance/vendor/github.com/nginx/agent/v2/src/core/os.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/os.go b/src/core/os.go index e1f95cf324..65f91a0e05 100644 --- a/src/core/os.go +++ b/src/core/os.go @@ -50,7 +50,7 @@ func EnableWritePermissionForSocket(path string) error { case <-timeout: return lastError default: - lastError = os.Chmod(path, 0o660) + lastError = os.Chmod(path, 0o600) if lastError == nil { return nil } diff --git a/test/integration/vendor/github.com/nginx/agent/v2/src/core/os.go b/test/integration/vendor/github.com/nginx/agent/v2/src/core/os.go index e1f95cf324..65f91a0e05 100644 --- a/test/integration/vendor/github.com/nginx/agent/v2/src/core/os.go +++ b/test/integration/vendor/github.com/nginx/agent/v2/src/core/os.go @@ -50,7 +50,7 @@ func EnableWritePermissionForSocket(path string) error { case <-timeout: return lastError default: - lastError = os.Chmod(path, 0o660) + lastError = os.Chmod(path, 0o600) if lastError == nil { return nil } diff --git a/test/performance/vendor/github.com/nginx/agent/v2/src/core/os.go b/test/performance/vendor/github.com/nginx/agent/v2/src/core/os.go index e1f95cf324..65f91a0e05 100644 --- a/test/performance/vendor/github.com/nginx/agent/v2/src/core/os.go +++ b/test/performance/vendor/github.com/nginx/agent/v2/src/core/os.go @@ -50,7 +50,7 @@ func EnableWritePermissionForSocket(path string) error { case <-timeout: return lastError default: - lastError = os.Chmod(path, 0o660) + lastError = os.Chmod(path, 0o600) if lastError == nil { return nil }