From 37cb8d6952c80cf06296b38c7324fad38b1c9351527ec680a5c2d807a1d5cc28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 24 Dec 2024 17:14:15 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main openssl-3-livepatches revision dca48c26733ed1b2880cf59b3f44434c --- .gitattributes | 23 ++++++++ openssl-3-livepatches-0.1.tar.xz | 3 ++ openssl-3-livepatches.changes | 4 ++ openssl-3-livepatches.spec | 92 ++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 .gitattributes create mode 100644 openssl-3-livepatches-0.1.tar.xz create mode 100644 openssl-3-livepatches.changes create mode 100644 openssl-3-livepatches.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/openssl-3-livepatches-0.1.tar.xz b/openssl-3-livepatches-0.1.tar.xz new file mode 100644 index 0000000..c430be0 --- /dev/null +++ b/openssl-3-livepatches-0.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74185810a3fa715be2dc7d3347661720739869181c3f5632e93d1e8f237ce1c9 +size 452 diff --git a/openssl-3-livepatches.changes b/openssl-3-livepatches.changes new file mode 100644 index 0000000..6d75bb9 --- /dev/null +++ b/openssl-3-livepatches.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Dec 4 20:43:03 UTC 2024 - Giuliano Belinassi + +- Empty package for SLFO. diff --git a/openssl-3-livepatches.spec b/openssl-3-livepatches.spec new file mode 100644 index 0000000..b093872 --- /dev/null +++ b/openssl-3-livepatches.spec @@ -0,0 +1,92 @@ +# +# spec file for package openssl-3-livepatches +# +# Copyright (c) 2024 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 bname openssl-3-livepatches + +Name: %{bname} +Version: 0.1 +Release: 0 +Summary: Livepatches for OpenSSL-3 +License: OpenSSL +Group: Productivity/Networking/Security + +URL: https://www.suse.com/products/live-patching +Source: %{bname}-%{version}.tar.xz + +BuildRequires: libopenssl3 +BuildRequires: libpulp-tools +BuildRequires: libpulp0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +# Only available for these architectures. +ExclusiveArch: x86_64 + +Requires: libopenssl3 + +Requires: libpulp-tools +Requires: coreutils + +# Only available for these architectures. +ExclusiveArch: x86_64 + +%description +Live patching enables userland processes to be fixed without a restart cycle. +This package provides live patches for the libraries provided by openssl. +Applying a live patch requires libpulp-tools. + +%prep +tar -xvf %{_sourcedir}/%{name}-%{version}.tar.xz + +%build +make %{?_smp_mflags} + +# Some patches do not have a test program. +# make check + +%install +%make_install + +%post + +#FILES=( +#/usr/lib64/engines-3/capi.so +#/usr/lib64/engines-3/loader_attic.so +#/usr/lib64/engines-3/padlock.so +#/usr/lib64/libcrypto.so.3 +#/usr/lib64/libcrypto.so.3.1.4 +#/usr/lib64/libssl.so.3 +#/usr/lib64/libssl.so.3.1.4 +#/usr/lib64/ossl-modules/legacy.so +#/usr/lib64/ossl-modules/fips.so +#/usr/lib64/libcrypto.so +#/usr/lib64/libssl.so +#) +# +## Move the libs to /var/livepatches on sle-micro +#%{ulp_post_move_libs %{bname} %{version} ${FILES[@]}} +# +## Call the ulp post hook, which will trigger the update. +#%{ulp_post_hook %{bname} %{version}} + +%postun + +#%{ulp_post_remove_libs %{bname} %{version}} + +%files +/usr/lib64/%{bname}/ + +%changelog