Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hard-coded 0600 log file perms #294

Merged
merged 3 commits into from
Jun 7, 2023

Conversation

jarppiko
Copy link
Contributor

Summary

Solves #293. Removes obsolete code from cfg/logging.go that sets log file permissions to hard-coded 0600 in every bouncer start. This PR uses lumberjacklog roller library's native log file creation functionality instead which preserves existing log file permissions.

The logtools.SetLogFilePermissions() seems to have been copy-pasted from lumberjack as a quick-fix to natefinch/lumberjack#82, but the upstream issue has been fixed four years ago.

@mmetc
Copy link
Contributor

mmetc commented Jun 7, 2023

Thanks!
We had outdated dependencies until 0.0.26 so I didn't spot this one. I like removing code.

@mmetc mmetc merged commit a31e532 into crowdsecurity:main Jun 7, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants