Sync from SUSE:ALP:Source:Standard:1.0 ServiceReport revision ba67bcb0e1e731d5bdb541594a4bc029

This commit is contained in:
Adrian Schröter 2023-12-21 13:25:46 +01:00
commit 52f1f8fe0b
7 changed files with 247 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
ServiceReport-2.2.3+git1.55a13db1c256.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

97
ServiceReport.changes Normal file
View File

@ -0,0 +1,97 @@
-------------------------------------------------------------------
Tue Nov 7 10:05:32 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Fix build with RPM 4.19: unnumbered patches are no longer
supported.
-------------------------------------------------------------------
Tue Dec 14 11:19:24 UTC 2021 - Michal Suchanek <msuchanek@suse.com>
- 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 <jsegitz@suse.com>
- 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 <msuchanek@suse.de>
- 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 <msuchanek@suse.de>
- 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 <msuchanek@suse.com>
- 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 <sourabhjain@linux.ibm.com>
- Move setup.cfg metadata to setup.py file
-------------------------------------------------------------------
Thu May 14 00:00:00 UTC 2020 - Sourabh Jain <sourabhjain@linux.ibm.com>
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 <sourabhjain@linux.ibm.com>
Version 2.2.1
- First Open source release
- Initial Commit of Open Source release

83
ServiceReport.spec Normal file
View File

@ -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

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/linux-ras/ServiceReport</param>
<param name="revision">master</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@.%h</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled" />
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/linux-ras/ServiceReport</param>
<param name="changesrevision">55a13db1c256f0ed8c53292e48a4592491ba79bd</param></service></servicedata>

View File

@ -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