From 79abb9c4d716bc3705825c783f1c801b74181c0b Mon Sep 17 00:00:00 2001 From: maria jose Date: Sun, 3 Sep 2023 21:37:12 -0400 Subject: [PATCH] end2end: reduce permissions for file --- log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/log.go b/log/log.go index 78b1d13fd..c4068aaec 100644 --- a/log/log.go +++ b/log/log.go @@ -102,7 +102,7 @@ func Init(level, output string, errorOutput io.Writer) { case logTestWriterName: out = logTestWriter default: - f, err := os.OpenFile(output, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0o644) + f, err := os.OpenFile(output, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600) if err != nil { panic(fmt.Sprintf("cannot create log output: %v", err)) }