From 760b822b53f11a678e4aca17887fd70f1bc7ae07 Mon Sep 17 00:00:00 2001 From: QxBytes <39818795+QxBytes@users.noreply.github.com> Date: Mon, 1 Jul 2024 18:33:12 -0700 Subject: [PATCH] fix: update azure-vnet directory permissions (#2819) update file lock directory permissions --- processlock/processlock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processlock/processlock.go b/processlock/processlock.go index 1e534d7683..c1ac97ddb3 100644 --- a/processlock/processlock.go +++ b/processlock/processlock.go @@ -32,8 +32,8 @@ func NewFileLock(fileAbsPath string) (Interface, error) { return nil, ErrEmptyFilePath } - //nolint:gomnd //0o664 - permission to create directory in octal - err := os.MkdirAll(filepath.Dir(fileAbsPath), os.FileMode(0o664)) + //nolint:gomnd //0o755 - permission to create directory in octal + err := os.MkdirAll(filepath.Dir(fileAbsPath), os.FileMode(0o755)) if err != nil { return nil, errors.Wrap(err, "mkdir lock dir returned error") }