Files
Tobias Brunner ea7a721dd8 file-logger: Prevent potential race when opening log files and change permission
This fixes a potential TOCTOU issue with opening log files.  The use of
`chown()` instead of `fchown()` could theoretically allow modifying the
ownership of an unintended file.

The log file now also is not world-readable anymore.

Also, the patch fixes the log groups for the two `(f)chown()` errors.

Fixes: d35d669180 ("Make syslog and file loggers configurable at runtime")
2026-07-24 13:55:04 +02:00
..