Blame SOURCES/gnupg-2.1.10-secmem.patch

e4fdbb
diff -up gnupg-2.1.10/g10/gpg.c.secmem gnupg-2.1.10/g10/gpg.c
e4fdbb
--- gnupg-2.1.10/g10/gpg.c.secmem	2015-12-04 10:53:27.000000000 +0100
e4fdbb
+++ gnupg-2.1.10/g10/gpg.c	2015-12-07 15:32:38.922812652 +0100
e4fdbb
@@ -889,7 +889,7 @@ make_libversion (const char *libname, co
e4fdbb
 
e4fdbb
   if (maybe_setuid)
e4fdbb
     {
e4fdbb
-      gcry_control (GCRYCTL_INIT_SECMEM, 0, 0);  /* Drop setuid. */
e4fdbb
+      gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0);  /* Drop setuid. */
e4fdbb
       maybe_setuid = 0;
e4fdbb
     }
e4fdbb
   s = getfnc (NULL);
e4fdbb
@@ -1041,7 +1041,7 @@ build_list (const char *text, char lette
e4fdbb
   char *string;
e4fdbb
 
e4fdbb
   if (maybe_setuid)
e4fdbb
-    gcry_control (GCRYCTL_INIT_SECMEM, 0, 0);  /* Drop setuid. */
e4fdbb
+    gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0);  /* Drop setuid. */
e4fdbb
 
e4fdbb
   indent = utf8_charcount (text, -1);
e4fdbb
   len = 0;
e4fdbb
diff -up gnupg-2.1.10/sm/gpgsm.c.secmem gnupg-2.1.10/sm/gpgsm.c
e4fdbb
--- gnupg-2.1.10/sm/gpgsm.c.secmem	2015-11-30 17:39:52.000000000 +0100
e4fdbb
+++ gnupg-2.1.10/sm/gpgsm.c	2015-12-07 15:31:17.226884207 +0100
e4fdbb
@@ -530,7 +530,7 @@ make_libversion (const char *libname, co
e4fdbb
 
e4fdbb
   if (maybe_setuid)
e4fdbb
     {
e4fdbb
-      gcry_control (GCRYCTL_INIT_SECMEM, 0, 0);  /* Drop setuid. */
e4fdbb
+      gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0);  /* Drop setuid. */
e4fdbb
       maybe_setuid = 0;
e4fdbb
     }
e4fdbb
   s = getfnc (NULL);