mirror of
https://github.com/containers/podman.git
synced 2025-07-02 16:57:24 +08:00
libpod: log file doesn't need to be executable
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -34,7 +34,7 @@ func newLogFileEventer(options EventerOptions) (*EventLogFile, error) {
|
||||
}
|
||||
// We have to make sure the file is created otherwise reading events will hang.
|
||||
// https://github.com/containers/podman/issues/15688
|
||||
fd, err := os.OpenFile(options.LogFilePath, os.O_RDONLY|os.O_CREATE, 0700)
|
||||
fd, err := os.OpenFile(options.LogFilePath, os.O_RDONLY|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create event log file: %w", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user