commit 52f1f8fe0bec9bf0c9ac66e21a83a94d6b60ab8a Author: Adrian Schröter Date: Thu Dec 21 13:25:46 2023 +0100 Sync from SUSE:ALP:Source:Standard:1.0 ServiceReport revision ba67bcb0e1e731d5bdb541594a4bc029 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/ServiceReport-2.2.3+git1.55a13db1c256.tar.xz b/ServiceReport-2.2.3+git1.55a13db1c256.tar.xz new file mode 100644 index 0000000..e7e2b91 --- /dev/null +++ b/ServiceReport-2.2.3+git1.55a13db1c256.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e23c5e0ac09ee70d87c8868a83e0cf2365896bc843fbeb0fea9deb34b46c2eb2 +size 25884 diff --git a/ServiceReport.changes b/ServiceReport.changes new file mode 100644 index 0000000..d427bbe --- /dev/null +++ b/ServiceReport.changes @@ -0,0 +1,97 @@ +------------------------------------------------------------------- +Tue Nov 7 10:05:32 UTC 2023 - Dominique Leuenberger + +- Fix build with RPM 4.19: unnumbered patches are no longer + supported. + +------------------------------------------------------------------- +Tue Dec 14 11:19:24 UTC 2021 - Michal Suchanek + +- Fix build on SLE 15: python-rpm-macros required for build (bsc#1193718). + +------------------------------------------------------------------- +Fri Sep 24 11:32:11 UTC 2021 - msuchanek@suse.de + +- Update to version 2.2.3+git1.55a13db1c256: + * [fadump] Update crashkernel recommendation (tid#7023277). + +------------------------------------------------------------------- +Tue Jul 27 09:15:52 UTC 2021 - Johannes Segitz + +- Added hardening to systemd service(s). Added harden_servicereport.service.patch + +------------------------------------------------------------------- +Thu Jul 15 16:23:48 UTC 2021 - msuchanek@suse.com + +- Update to version 2.2.3 (jsc#SLE-18193): + * ServiceReport v2.2.3 release + * [Daemon] check active status along with enabled + * Run-on supported architectures only + * Take crashkernel recommendation from kdump-lib.sh scripts + +------------------------------------------------------------------- +Wed Feb 03 10:33:36 UTC 2021 - Michal Suchanek + +- Update to version 2.2.2+git10.1caca0630e36 (bsc#1181729 ltc#191203): + * Update SLES crashkernel recommendation values + * update HTX service name +- Remove the already included patches + - 0001-Add-active-dump-check-in-kdump-and-FADump-plugin.patch + - 0002-Introduce-a-new-option-to-mark-plugins-optional.patch + - 0003-HTX-Mark-HTX-plugin-as-optional.patch + - 0004-Add-new-option-to-run-all-applicable-plugins.patch + - 0005-Allow-distro-classes-to-redefine-the-capture-kernel-.patch + - 0006-utils-remove-the-invalid-function-call-to-walk_packa.patch + - 0007-Update-data-files-of-the-project.patch + - 0008-Run-servicereport-using-python3-binary.patch + +------------------------------------------------------------------- +Tue Nov 3 11:37:00 UTC 2020 - Michal Suchanek + +- Update to upstream git (jsc#SLE-13288). + + 0001-Add-active-dump-check-in-kdump-and-FADump-plugin.patch + + 0002-Introduce-a-new-option-to-mark-plugins-optional.patch + + 0003-HTX-Mark-HTX-plugin-as-optional.patch + + 0004-Add-new-option-to-run-all-applicable-plugins.patch + + 0005-Allow-distro-classes-to-redefine-the-capture-kernel-.patch + + 0006-utils-remove-the-invalid-function-call-to-walk_packa.patch + + 0007-Update-data-files-of-the-project.patch + + 0008-Run-servicereport-using-python3-binary.patch + +------------------------------------------------------------------- +Wed Sep 2 13:10:23 UTC 2020 - Michal Suchanek + +- Run throuhg spec-cleaner and split off changelog. +- Fix license and dependencies +- Re-download the source + +------------------------------------------------------------------- +Sun May 17 00:00:00 UTC 2020 - Sourbh Jain + +- Move setup.cfg metadata to setup.py file + +------------------------------------------------------------------- +Thu May 14 00:00:00 UTC 2020 - Sourabh Jain + +Update to version 2.2.2 +- Update crashkernel memory reservation limit +- Remove rpm postscript +- Add servicereport.spec file +- Move systemd service file to a generic location +- Run service only once at boot time without repair action +- fix initrd repair function +- [fadump] No boolean return from check_* function +- [fadump] indent the code with spaces instead of tabs +- Fix the option_string for --plugin option +- [fadump] update the logic to extract the FADump mem reservation +- Add irqbalance daemon check +- Add irqbalance package check +- Fix the system platform string extraction from /proc/cpuinfo +- Fix powerpc-ibm-utils package name +- Fix typo in README.md + +------------------------------------------------------------------- +Fri Nov 15 00:00:00 UTC 2019 - Sourabh Jain +Version 2.2.1 +- First Open source release +- Initial Commit of Open Source release diff --git a/ServiceReport.spec b/ServiceReport.spec new file mode 100644 index 0000000..7452eb4 --- /dev/null +++ b/ServiceReport.spec @@ -0,0 +1,83 @@ +# +# spec file for package ServiceReport +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define libversion %(echo %{version} | sed -e "s/+git.*//") + +# By default python 3 is used to build the package. +%define python python3 +Name: ServiceReport +Version: 2.2.3+git1.55a13db1c256 +Release: 0 +Summary: A tool to validate and repair First Failure Data Capture (FFDC) configuration +License: GPL-2.0-only +Group: System/Management +URL: https://github.com/linux-ras/ServiceReport +Source: %{name}-%{version}.tar.xz +Patch0: harden_servicereport.service.patch +BuildRequires: %{python} +BuildRequires: %{python}-setuptools +BuildRequires: python-rpm-macros +BuildRequires: systemd-rpm-macros +%systemd_requires +BuildArch: noarch + +%description +ServiceReport is a python based tool that investigates the incorrect +First Failure Data Capture (FFDC) configuration and optionally repairs +the incorrect configuration + +%define debug_package %{nil} + +%prep +%setup -q +%autopatch -p1 + +%build +%{python} setup.py build + +%install +%{python} setup.py install --root=%{buildroot} + +%pre +%service_add_pre servicereport.service + +%post +%service_add_post servicereport.service + +%preun +%service_del_preun servicereport.service + +%postun +%service_del_postun servicereport.service + +%files +%license COPYING +%{_mandir}/man8/* +%doc %{_datadir}/doc/* +%{_bindir}/servicereport +%{_unitdir}/servicereport.service + +%if "%{python}" == "python3" +%{python3_sitelib}/servicereportpkg +%{python3_sitelib}/%{name}-%{libversion}*.egg-info +%else +%{python_sitelib}/servicereportpkg +%{python_sitelib}/%{name}-%{libversion}*.egg-info +%endif + +%changelog diff --git a/_service b/_service new file mode 100644 index 0000000..e90853c --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + git + https://github.com/linux-ras/ServiceReport + master + v(.*) + @PARENT_TAG@+git@TAG_OFFSET@.%h + enable + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..b5cc3db --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/linux-ras/ServiceReport + 55a13db1c256f0ed8c53292e48a4592491ba79bd \ No newline at end of file diff --git a/harden_servicereport.service.patch b/harden_servicereport.service.patch new file mode 100644 index 0000000..b6649e7 --- /dev/null +++ b/harden_servicereport.service.patch @@ -0,0 +1,22 @@ +Index: ServiceReport-2.2.3/service/servicereport.service +=================================================================== +--- ServiceReport-2.2.3.orig/service/servicereport.service ++++ ServiceReport-2.2.3/service/servicereport.service +@@ -3,6 +3,17 @@ Description=ServiceReport + Wants=kdump.service + + [Service] ++# added automatically, for details please see ++# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort ++ProtectSystem=full ++ProtectHome=true ++PrivateDevices=true ++ProtectHostname=true ++ProtectClock=true ++ProtectKernelTunables=true ++ProtectKernelModules=true ++ProtectKernelLogs=true ++ProtectControlGroups=true + Type=oneshot + ExecStart=/usr/bin/servicereport -v +