From d81c5282deeb7c86501eb023f87405dee085f324 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 17 Oct 2018 11:35:46 +0200 Subject: [PATCH] fixed to set permissions 0600 to HTTP built-in log files --- lib/Monitorix.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Monitorix.pm b/lib/Monitorix.pm index 58cf17d..2ec127c 100644 --- a/lib/Monitorix.pm +++ b/lib/Monitorix.pm @@ -133,6 +133,7 @@ sub httpd_setup { open(OUT, ">> " . $config->{httpd_builtin}->{log_file}); close(OUT); chown($uid, $gid, $config->{httpd_builtin}->{log_file}); + chmod(0600, $config{httpd_builtin}->{log_file}); setgid($gid); if(getgid() != $gid) {