diff --git a/sysstat-tmpfiles.conf b/sysstat-tmpfiles.conf new file mode 100644 index 0000000..ce93986 --- /dev/null +++ b/sysstat-tmpfiles.conf @@ -0,0 +1 @@ +d /var/log/sa 0755 root root - diff --git a/sysstat.spec b/sysstat.spec index f37ccf0..8cb356d 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,7 +1,7 @@ Summary: Collection of performance monitoring tools for Linux Name: sysstat Version: 12.5.4 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv2+ URL: http://sebastien.godard.pagesperso-orange.fr/ Source: https://github.com/sysstat/sysstat/archive/v%{version}.tar.gz @@ -9,6 +9,7 @@ Source: https://github.com/sysstat/sysstat/archive/v%{version}.tar.gz # Use colors in sysstat output Source1: colorsysstat.csh Source2: colorsysstat.sh +Source3: sysstat-tmpfiles.conf # arithmetic overflow in allocate_structures() on 32 bit systems (CVE-2022-39377) Patch1: sysstat-12.5.4-CVE-2022-39377.patch @@ -77,6 +78,10 @@ mkdir -p %{buildroot}%{_sysconfdir}/profile.d install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d +# tmpfiles config +mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir} +install -p -m 644 %SOURCE3 ${RPM_BUILD_ROOT}%{_tmpfilesdir}/%{name}.conf + %post %systemd_post sysstat.service sysstat-collect.timer sysstat-summary.timer @@ -101,8 +106,12 @@ fi %{_systemd_util_dir}/system-sleep/sysstat* %{_mandir}/man*/* %{_localstatedir}/log/sa +%{_tmpfilesdir}/%{name}.conf %changelog +* Mon Dec 01 2025 Lukáš Zaoral - 12.5.4-10 +- fix creation of /var/log/sa in image mode (RHEL-129980) + * Tue Jul 30 2024 Lukáš Zaoral - 12.5.4-9 - don't cap SVG graph output at 100% (RHEL-39002)