Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions base/comps/libkcapi/libkcapi.comp.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# Sources for the 1.5.1 update overlay; drop together with it once the imported Fedora spec
# packages 1.5.1 or newer. Upstream release files from chronox.de; the tarball verifies against
# the .asc with Stephan Mueller's key 342C4E3A39EA5F19909BE38AAE5D0DA3FD092353.
# Import 1.5.1 and its auxiliary-test fix from Fedora f45 instead of overriding f43.
# https://src.fedoraproject.org/rpms/libkcapi/c/af20f4943914f131f03b8b26e864d929976690b5
[components.libkcapi]
spec = { type = "upstream", upstream-distro = { name = "fedora", version = "45" }, upstream-commit = "af20f4943914f131f03b8b26e864d929976690b5" }

[[components.libkcapi.source-files]]
filename = "libkcapi-1.5.1.tar.xz"
hash = "5d9941fa6b10cd4edcc64d88590551df8df3d1753bbd579e3b1834ce63301fb8758ef453934634e6902afa7fcc57b679275d1f6eab92e3b9ef7a0227b90e4897"
hash-type = "SHA512"
origin = { type = "download", uri = "https://www.chronox.de/libkcapi/releases/1.5.1/libkcapi-1.5.1.tar.xz" }

[[components.libkcapi.source-files]]
filename = "libkcapi-1.5.1.tar.xz.asc"
hash = "6c845fd76df7a0f65107b0f1ab7e9b48f1b329ee0b9a7725dbc848aa56ba0e27514ae4fae3e74c44180cfbe82e8575598c3bba84ed5f9d2f345704264c3c4046"
hash-type = "SHA512"
origin = { type = "download", uri = "https://www.chronox.de/libkcapi/releases/1.5.1/libkcapi-1.5.1.tar.xz.asc" }
# Preserve Azure Linux's documentation subpackage despite Fedora's texlive workaround.
[components.libkcapi.build]
with = ["doc"]
30 changes: 0 additions & 30 deletions base/comps/libkcapi/overlays/0001-update-to-1.5.1.overlay.toml

This file was deleted.

6 changes: 3 additions & 3 deletions locks/libkcapi.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Managed by azldev component update. Do not edit manually.
version = 1
import-commit = '9e4e0a064d581efc5ad80d4c10bf1ff5520b6697'
upstream-commit = '9e4e0a064d581efc5ad80d4c10bf1ff5520b6697'
upstream-commit = 'af20f4943914f131f03b8b26e864d929976690b5'
manual-bump = 2
input-fingerprint = 'sha256:166befc1aef2512676174d4e9d532e31f660843e69f323ee7288bab27ad8537d'
resolution-input-hash = 'sha256:ee2b4b2a7474232699f7ef1461160019159849dcc0daf2dcff1aabf35416ecec'
input-fingerprint = 'sha256:6c8965b35f45976ab8509a54e4d99b5d302e589cb2669a63ad571be50841ddab'
resolution-input-hash = 'sha256:cf591f195441ae8a36f7510f535767c177ebe6af857ef78e694d8a16d95aef2d'
36 changes: 36 additions & 0 deletions specs/l/libkcapi/001-fix-test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 780d6fd0d94ba921724d6db64fc1aedb32d7cf46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ondrej=20Mosn=C3=A1=C4=8Dek?= <omosnacek@gmail.com>
Date: Wed, 19 Aug 2026 16:07:21 +0200
Subject: [PATCH] test/kcapi-main: adjust the RNG tests for kernels 7.2+
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The following 7.2 kernel commits:
- 89cfd38c788e ("crypto: drbg - Remove support for HMAC-SHA256 and HMAC-SHA384")
- 6f88f41eeb7d ("crypto: drbg - Remove support for CTR_DRBG")
removed support for the currently tested drbg_nopr_hmac_sha256 and
drbg_nopr_ctr_aes256. The only ones left are drbg_nopr_hmac_sha256 and
stdrng, so test those two instead.

Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
---
test/kcapi-main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/kcapi-main.c b/test/kcapi-main.c
index a01140f..53824a1 100644
--- a/test/kcapi-main.c
+++ b/test/kcapi-main.c
@@ -690,9 +690,9 @@ static int auxiliary_tests(void)
kcapi_md_destroy(handle);


- if (aux_test_rng("drbg_nopr_hmac_sha256", NULL, 0))
+ if (aux_test_rng("drbg_nopr_hmac_sha512", NULL, 0))
ret++;
- if (aux_test_rng("drbg_nopr_ctr_aes256", NULL, 0))
+ if (aux_test_rng("stdrng", NULL, 0))
ret++;

return ret;
3 changes: 3 additions & 0 deletions specs/l/libkcapi/libkcapi.azl.macros
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Macros file automatically generated by azldev.
# Do not edit manually; changes will be overwritten.
%_with_doc 1
46 changes: 41 additions & 5 deletions specs/l/libkcapi/libkcapi.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## (rpmautospec version 0.8.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 1;
release_number = 3;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
Expand All @@ -11,10 +11,13 @@
# This spec file has been modified by azldev to include build configuration overlays.
# Do not edit manually; changes may be overwritten.

# All Azure Linux specs with overlays include this macro file, irrespective of whether new macros have been added.
%{load:%{_sourcedir}/libkcapi.azl.macros}

# Shared object version of libkcapi.
%global vmajor 1
%global vminor 5
%global vpatch 0
%global vpatch 1

# Do we build the replacements packages?
%bcond_with replace_coreutils
Expand Down Expand Up @@ -47,7 +50,9 @@
# Use `--without fuzz_test` to skip the fuzz test during build
%bcond_without fuzz_test
# Use `--without doc` to build without the -doc subpackage
%bcond_without doc
# FIXME: docs fail to build with latest texlive:
# https://bugzilla.redhat.com/show_bug.cgi?id=2488672
%bcond_with doc
# Use `--without clang_sa` to skip clang static analysis during build
%bcond_without clang_sa

Expand Down Expand Up @@ -128,7 +133,7 @@ lib_path=%{buildroot}%{_libdir} \
%{nil}

Name: libkcapi
Version: 1.5.1
Version: %{vmajor}.%{vminor}.%{vpatch}
Release: %autorelease
Summary: User space interface to the Linux Kernel Crypto API

Expand All @@ -138,6 +143,10 @@ Source0: https://www.chronox.de/%{name}/releases/%{version}/%{name}-%{ver
Source1: https://www.chronox.de/%{name}/releases/%{version}/%{name}-%{version}.tar.xz.asc
Source2: sha512hmac-openssl.sh
Source3: fipshmac-openssl.sh
Source9999: libkcapi.azl.macros

# From https://github.com/smuellerDD/libkcapi/pull/199/
Patch: %{giturl}/commit/780d6fd0d94ba921724d6db64fc1aedb32d7cf46.patch#/001-fix-test.patch

BuildRequires: bash
BuildRequires: coreutils
Expand Down Expand Up @@ -557,7 +566,34 @@ popd

%changelog
## START: Generated by rpmautospec
* Thu Nov 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.5.1-1
* Tue Dec 01 2026 AllSpark <allspark@microsoft.com> - 1.5.1-3
- fix(libkcapi): retag to Fedora f45 for 1.5.1

* Thu Aug 20 2026 Ondrej Mosnáček <omosnacek@gmail.com> - 1.5.1-2
- Apply pending upstream patch to fix the auxiliary test

* Tue Aug 18 2026 Ondrej Mosnáček <omosnacek@gmail.com> - 1.5.1-1
- Update to version 1.5.1 (fedora#2512793)
- Fix CVE-2026-71225 (fedora#2511445)
- Fix CVE-2026-71226 (fedora#2511484)
- Fix CVE-2026-71227 (fedora#2511487)

* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild

* Sun Jun 14 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.5.0-14
- Disable docs which fail to build

* Fri Jun 12 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.5.0-13
- Rebuilt for openssl 4.0

* Thu Apr 02 2026 Ondrej Mosnáček <omosnacek@gmail.com> - 1.5.0-12
- Fix FTBFS on kernels 6.19+

* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild

* Thu Nov 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.5.0-10
- fix(libkcapi): upgrade to 1.5.1 to address CVEs

* Wed Aug 19 2026 reuben olinsky <reubeno@users.noreply.github.com> - 1.5.0-9
Expand Down