Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37772898
en ru br
ALT Linux repos
S:2.4.3-alt1
5.0: 2.0.11-alt2.M50.1
4.1: 2.0.14-alt1.M41.1
4.0: 2.0.9-alt2.M40.1
3.0: 1.9.17-alt2

Other repositories
Upstream:2.0.8

Group :: Text tools
RPM: gnupg2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0001-FEDORA-compatibility-with-system-FIPS-mode.patch
Download


From 737a99cc94dcb788fcb3939275edab4f2f18509d Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Mon, 28 Dec 2020 04:48:24 +0300
Subject: FEDORA: compatibility with system FIPS mode
---
 g10/gpg.c  | 4 ++--
 sm/gpgsm.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/g10/gpg.c b/g10/gpg.c
index 2ae3750a9..a0cc56d58 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -1090,7 +1090,7 @@ make_libversion (const char *libname, const char *(*getfnc)(const char*))
 
   if (maybe_setuid)
     {
-      gcry_control (GCRYCTL_INIT_SECMEM, 0, 0);  /* Drop setuid. */
+      gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0);  /* Drop setuid. */
       maybe_setuid = 0;
     }
   s = getfnc (NULL);
@@ -1250,7 +1250,7 @@ build_list (const char *text, char letter,
   char *string;
 
   if (maybe_setuid)
-    gcry_control (GCRYCTL_INIT_SECMEM, 0, 0);  /* Drop setuid. */
+    gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0);  /* Drop setuid. */
 
   indent = utf8_charcount (text, -1);
   len = 0;
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index ce977413d..636d14af4 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -609,7 +609,7 @@ make_libversion (const char *libname, const char *(*getfnc)(const char*))
 
   if (maybe_setuid)
     {
-      gcry_control (GCRYCTL_INIT_SECMEM, 0, 0);  /* Drop setuid. */
+      gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0);  /* Drop setuid. */
       maybe_setuid = 0;
     }
   s = getfnc (NULL);
-- 
2.25.4
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin