-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
out_file: don't create world writable directory in daemon mode
How to reproduce: Create the following config file as file-fluentd.conf: <source> type forward </source> <match **> type file path /tmp/x/y/z/a </match> Start fluentd: % ruby -I lib bin/fluentd -c file-fluentd.conf --daemon fluentd.pid Check permission of /tmp/x: % stat /tmp/x | grep Access Access: (0777/drwxrwxrwx) Uid: ( 1000/ kou) Gid: ( 1000/ kou) Access: 2014-11-21 17:15:59.898444064 +0900 Permission is "0777/drwxrwxrwx". Because daemon mode changes umask to `0000`. (It's natural for daemon.)
- Loading branch information
Showing
3 changed files
with
3 additions
and
2 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
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