From a3cb8ffec1b7021a493e07d1d495a88666233243 Mon Sep 17 00:00:00 2001 From: ebasov Date: Fri, 17 Jan 2025 18:53:00 +0300 Subject: [PATCH] Added rename sign files --- SPECS/kernel-6.1.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SPECS/kernel-6.1.spec b/SPECS/kernel-6.1.spec index 6e69f00..469a079 100644 --- a/SPECS/kernel-6.1.spec +++ b/SPECS/kernel-6.1.spec @@ -1094,6 +1094,12 @@ BuildKernel() { # Red Hat IMA code-signing cert, which is used to authenticate package files install -m 0644 %{ima_signing_cert} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-keys/%{ima_cert_name} + %if %{signmodules} + # Save the signing keys so that we can sign the modules in __modsign_install_post. + cp certs/signing_key.pem certs/signing_key.pem.sign${Variant:++${Variant}} + cp certs/signing_key.x509 certs/signing_key.x509.sign${Variant:++${Variant}} + %endif + %endif ### BCAT