|
|
9f54a2 |
diff -up gnupg-2.0.20/g10/gpg.c.secmem gnupg-2.0.20/g10/gpg.c
|
|
|
9f54a2 |
--- gnupg-2.0.20/g10/gpg.c.secmem 2013-05-10 14:55:46.000000000 +0200
|
|
|
9f54a2 |
+++ gnupg-2.0.20/g10/gpg.c 2013-05-15 14:13:50.989541530 +0200
|
|
|
9f54a2 |
@@ -794,7 +794,7 @@ make_libversion (const char *libname, co
|
|
|
9f54a2 |
|
|
|
9f54a2 |
if (maybe_setuid)
|
|
|
9f54a2 |
{
|
|
|
9f54a2 |
- gcry_control (GCRYCTL_INIT_SECMEM, 0, 0); /* Drop setuid. */
|
|
|
9f54a2 |
+ gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0); /* Drop setuid. */
|
|
|
9f54a2 |
maybe_setuid = 0;
|
|
|
9f54a2 |
}
|
|
|
9f54a2 |
s = getfnc (NULL);
|
|
|
9f54a2 |
@@ -898,7 +898,7 @@ build_list (const char *text, char lette
|
|
|
9f54a2 |
char *string;
|
|
|
9f54a2 |
|
|
|
9f54a2 |
if (maybe_setuid)
|
|
|
9f54a2 |
- gcry_control (GCRYCTL_INIT_SECMEM, 0, 0); /* Drop setuid. */
|
|
|
9f54a2 |
+ gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0); /* Drop setuid. */
|
|
|
9f54a2 |
|
|
|
9f54a2 |
indent = utf8_charcount (text);
|
|
|
9f54a2 |
len = 0;
|
|
|
9f54a2 |
diff -up gnupg-2.0.20/sm/gpgsm.c.secmem gnupg-2.0.20/sm/gpgsm.c
|
|
|
9f54a2 |
--- gnupg-2.0.20/sm/gpgsm.c.secmem 2013-05-10 14:55:49.000000000 +0200
|
|
|
9f54a2 |
+++ gnupg-2.0.20/sm/gpgsm.c 2013-05-15 14:11:18.819249598 +0200
|
|
|
9f54a2 |
@@ -493,7 +493,7 @@ make_libversion (const char *libname, co
|
|
|
9f54a2 |
|
|
|
9f54a2 |
if (maybe_setuid)
|
|
|
9f54a2 |
{
|
|
|
9f54a2 |
- gcry_control (GCRYCTL_INIT_SECMEM, 0, 0); /* Drop setuid. */
|
|
|
9f54a2 |
+ gcry_control (GCRYCTL_INIT_SECMEM, 4096, 0); /* Drop setuid. */
|
|
|
9f54a2 |
maybe_setuid = 0;
|
|
|
9f54a2 |
}
|
|
|
9f54a2 |
s = getfnc (NULL);
|