Update to version from factory which fixes CVE-2025-53881 (bsc#1246457) #3

Open
bigironman wants to merge 2 commits from factory into leap-16.1
3 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 25 14:48:37 UTC 2025 - Wolfgang Engel <wolfgang.engel@suse.com>
- Fix potential security issue with logfile rotation CVE-2025-53881 (bsc#1246457)
-------------------------------------------------------------------
Fri Jun 6 11:34:28 UTC 2025 - Wolfgang Engel <wolfgang.engel@suse.com>

View File

@@ -9,21 +9,23 @@
weekly
#maxage 365
prerotate
cd /var/log/exim
logdir=/var/log/exim
cd $logdir
test -f /etc/sysconfig/exim && source /etc/sysconfig/exim
if test "$EXIM_REPORT_WEEKLY" = yes; then
day=`date +%Y%m%d`
report=weekly_report-$day
eximstatsdir=/srv/www/eximstats/$day
touch $report; chmod 640 $report; chown :mail $report
eximstats main.log > $report
tempdir=`mktemp -d`
touch $tempdir/$report; chmod 640 $tempdir/$report; chown :mail $tempdir/$report
eximstats main.log > $tempdir/$report
if test "$EXIM_REPORT_WEEKLY_HTML" = yes; then
mkdir $eximstatsdir
eximstats -html -charts -chartdir $eximstatsdir main.log > $eximstatsdir/index.html
fi
if ! test -e no_report_mail && test "$EXIM_REPORT_WEEKLY_SEND" = yes; then mail -s "$(sed -n '2{p;q;}' < $report) ($(hostname))" postmaster < $report; fi
if ! test -e no_report_mail && test "$EXIM_REPORT_WEEKLY_SEND" = yes; then mail -s "$(sed -n '2{p;q;}' < $tempdir/$report) ($(hostname))" postmaster < $tempdir/$report; fi
if test -f $report.gz; then old $report.gz; fi
gzip -f -9 $report
gzip -f -9 $tempdir/$report && mv -n $tempdir/$report.gz $logdir/ && rmdir $tempdir
fi
endscript
}

View File

@@ -1,7 +1,7 @@
#
# spec file for package exim
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed