1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-07 13:40:36 +02:00
Files
guix/gnu/packages/patches/libcamera-ipa_manager-disable-signature-verification.patch
Sergey Trofimov 6d2f3fe350 gnu: libcamera: Update to 0.6.0.
* gnu/packages/networking.scm (libcamera): Update to 0.6.0.
[arguments]<#:configure-flags>: Enable python bindings, remove obsolete
flags.
<#:phases>{'set-sphinx-theme}: New phase.
{'disable-gstreamer-tests}: Disable tests requiring /dev/udmabuf.
[native-inputs]: Add python-sphinxcontrib-doxylink.
[inputs]: Add libjpeg-turbo, libyuv, pybind11.
* gnu/packages/patches/libcamera-ipa_manager-disable-signature-verification.patch:
Adjust to latest source.

Fixes: guix/guix#6002
Change-Id: I8618f58438de3569b7a54663f69ecaa7b1c6283c
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-02-07 12:28:51 +01:00

52 lines
1.4 KiB
Diff

From c99706475cde3d963a17f4f8871149711ce6c467 Mon Sep 17 00:00:00 2001
From: Andrew Tropin <andrew@trop.in>
Date: Wed, 28 Jan 2026 12:23:20 +0100
Subject: [PATCH] libcamera: ipa_manager: Disable signature verification
---
src/libcamera/ipa_manager.cpp | 27 +++------------------------
1 file changed, 3 insertions(+), 24 deletions(-)
diff --git a/src/libcamera/ipa_manager.cpp b/src/libcamera/ipa_manager.cpp
index 35171d09..4ab394da 100644
--- a/src/libcamera/ipa_manager.cpp
+++ b/src/libcamera/ipa_manager.cpp
@@ -288,32 +288,11 @@ IPAModule *IPAManager::module(PipelineHandler *pipe, uint32_t minVersion,
bool IPAManager::isSignatureValid([[maybe_unused]] IPAModule *ipa) const
{
-#if HAVE_IPA_PUBKEY
- if (forceIsolation_) {
- LOG(IPAManager, Debug)
- << "Isolation of IPA module " << ipa->path()
- << " forced through configuration";
- return false;
- }
-
- File file{ ipa->path() };
- if (!file.open(File::OpenModeFlag::ReadOnly))
- return false;
-
- Span<uint8_t> data = file.map();
- if (data.empty())
- return false;
-
- bool valid = pubKey_.verify(data, ipa->signature());
-
LOG(IPAManager, Debug)
- << "IPA module " << ipa->path() << " signature is "
- << (valid ? "valid" : "not valid");
+ << "Signature verification is disabled by Guix. "
+ << "See https://issues.guix.gnu.org/72828 for more details.";
- return valid;
-#else
- return false;
-#endif
+ return true;
}
} /* namespace libcamera */
--
2.52.0