forked from acassen/keepalived
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When opening files for write, ensure files can only be read by root
Issue acassen#1048 referred to CVE-2018-19046 regarding files used for debugging purposes could potentially be read by non root users. This commit ensures that such log files cannot be opened by non root users. Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
- Loading branch information
1 parent
cf605b9
commit ac8e2ef
Showing
2 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters