Use 0200 for write permissions

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2023-07-10 01:30:28 +02:00
parent cfb0111d8c
commit 014153a503

View File

@@ -32,7 +32,7 @@ func (f *AllowedFile) Set(s string) error {
case "eventlog":
f.w = nil
default:
file, err := os.OpenFile(s, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0640)
file, err := os.OpenFile(s, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0200)
if err != nil {
return err
}