From e6b43abd94d5a450c87561f160850bbef2023211 Mon Sep 17 00:00:00 2001 From: Kurt Garloff Date: Wed, 29 Oct 2008 14:00:48 -0700 Subject: [PATCH] --- yaml --- r: 118019 b: refs/heads/master c: 0833422274ff00729a603b020fac297e69a03e40 h: refs/heads/master i: 118017: fad4e286ca995ac372f76c6cca3c2103361534c4 118015: c3f2c6a91235f43cc864c047f661b10db136737e v: v3 --- [refs] | 2 +- trunk/include/linux/resource.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index d41af574eaba..d127055018f4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e946217e4fdaa67681bbabfa8e6b18641921f750 +refs/heads/master: 0833422274ff00729a603b020fac297e69a03e40 diff --git a/trunk/include/linux/resource.h b/trunk/include/linux/resource.h index aaa423a6f3d9..40fc7e626082 100644 --- a/trunk/include/linux/resource.h +++ b/trunk/include/linux/resource.h @@ -59,10 +59,10 @@ struct rlimit { #define _STK_LIM (8*1024*1024) /* - * GPG wants 32kB of mlocked memory, to make sure pass phrases + * GPG2 wants 64kB of mlocked memory, to make sure pass phrases * and other sensitive information are never written to disk. */ -#define MLOCK_LIMIT (8 * PAGE_SIZE) +#define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024) /* * Due to binary compatibility, the actual resource numbers