[packages/libkcapi] upstream fix disabling console logging by default; rel 2
atler
atler at pld-linux.org
Sat Aug 5 03:30:00 CEST 2023
commit d3ac244ebf65fa8d176e8c2f23b0222d321cf8c8
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Aug 5 01:38:36 2023 +0200
upstream fix disabling console logging by default; rel 2
disable-log.patch | 27 +++++++++++++++++++++++++++
libkcapi.spec | 4 +++-
2 files changed, 30 insertions(+), 1 deletion(-)
---
diff --git a/libkcapi.spec b/libkcapi.spec
index 180ed80..f471904 100644
--- a/libkcapi.spec
+++ b/libkcapi.spec
@@ -9,12 +9,13 @@ Summary: Linux Kernel Crypto API User Space Interface Library
Summary(pl.UTF-8): Biblioteka interfejsu przestrzeni użytownika do API kryptograficznego jądra Linuksa
Name: libkcapi
Version: 1.4.0
-Release: 1
+Release: 2
License: BSD or GPL v2
Group: Libraries
#Source0Download: https://www.chronox.de/libkcapi.html
Source0: https://www.chronox.de/libkcapi/%{name}-%{version}.tar.xz
# Source0-md5: ca877231a346dfeefb50fe4311d2df5d
+Patch0: disable-log.patch
URL: https://www.chronox.de/libkcapi.html
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -80,6 +81,7 @@ Statyczna biblioteka libkcapi.
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
diff --git a/disable-log.patch b/disable-log.patch
new file mode 100644
index 0000000..663df0a
--- /dev/null
+++ b/disable-log.patch
@@ -0,0 +1,27 @@
+From 7a56432a48f6af4b2e5c2f0ec62ff974b111a3e9 Mon Sep 17 00:00:00 2001
+From: Stephan Mueller <smueller at chronox.de>
+Date: Wed, 27 Jul 2022 07:21:45 +0200
+Subject: [PATCH] set default log level to NONE
+
+Libraries should not issue any logs. Thus, set the default log level to
+NONE.
+
+Suggested-by: Fabian Vogt
+Signed-off-by: Stephan Mueller <smueller at chronox.de>
+---
+ lib/kcapi-kernel-if.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c
+index 0df1a02..d7b10bf 100644
+--- a/lib/kcapi-kernel-if.c
++++ b/lib/kcapi-kernel-if.c
+@@ -55,7 +55,7 @@ void orig_memset_secure(void *s, int c, uint32_t n)
+ /************************************************************
+ * Logging logic
+ ************************************************************/
+-enum kcapi_verbosity kcapi_verbosity_level = KCAPI_LOG_ERR;
++enum kcapi_verbosity kcapi_verbosity_level = KCAPI_LOG_NONE;
+
+ void kcapi_dolog(enum kcapi_verbosity severity, const char *fmt, ...)
+ {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libkcapi.git/commitdiff/d3ac244ebf65fa8d176e8c2f23b0222d321cf8c8
More information about the pld-cvs-commit
mailing list