fluent-plugins-nursery / fluent-plugin-systemd

This is a fluentd input plugin. It reads logs from the systemd journal.
Apache License 2.0
153 stars 43 forks source link

pos file permission is invalid #29

Closed neko-neko closed 7 years ago

neko-neko commented 7 years ago

Issue

pos file is other user writable.

# my server pos file
$ ls /var/log/td-agent/systemd.journal.pos
-rw-rw-rw-  1 td-agent td-agent 123 Jan 30 17:40 systemd.journal.pos

# umask
$ umask -S
u=rwx,g=rx,o=rx

Should explicitly set permissions. lastest ruby set default permission 0666. https://docs.ruby-lang.org/ja/latest/method/Kernel/m/open.html

My PR. https://github.com/reevoo/fluent-plugin-systemd/pull/28