From 083bde276ccfdc990404df620ddf56f6dc7ae85d Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 6 Feb 2025 18:32:55 -0800 Subject: [PATCH] Logrotate configs cannot be world writable : https://github.com/webmin/webmin/issues/2396 --- logrotate/logrotate-lib.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/logrotate/logrotate-lib.pl b/logrotate/logrotate-lib.pl index 9a5bf8286..6d7ebc3f9 100755 --- a/logrotate/logrotate-lib.pl +++ b/logrotate/logrotate-lib.pl @@ -344,6 +344,7 @@ foreach $c (@$conf) { } print TEMP map { "$_\n" } &directive_lines($_[0]); close(TEMP); +&set_ownership_permissions(undef, undef, 0700, $temp); local $out = &backquote_logged("$config{'logrotate'} -f $temp 2>&1"); return ($?, $out); }