Репозитории ALT
S: | 2.4.3-alt1 |
5.1: | 2.0.14-alt1.M51.1 |
4.1: | 2.0.14-alt1.M41.1 |
4.0: | 2.0.9-alt2.M40.1 |
3.0: | 1.9.17-alt2 |
Другие репозитории
Upstream: | 2.0.8 |
Группа :: Работа с текстами
Пакет: gnupg2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0001-FEDORA-compatibility-with-system-FIPS-mode.patch
Скачать
Скачать
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