summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-08-26 20:37:13 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-26 20:37:13 -0700
commit7d867d4d2021b3b7c9368f77e952e39d4ff9d0d5 (patch)
treeab23f233e64b1bd760461323efb0011161f991c3 /include/linux
parentbc5184b165b855bb02e22e0b09cf195b3e37059e (diff)
[PATCH] sane mlock_limit
As David M-T points out, the default per-user mlock limit should be at least a single page. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/resource.h b/include/linux/resource.h
index b930c9cb7727..21a86cb6acdb 100644
--- a/include/linux/resource.h
+++ b/include/linux/resource.h
@@ -59,7 +59,7 @@ struct rlimit {
* GPG wants 32kB of mlocked memory, to make sure pass phrases
* and other sensitive information are never written to disk.
*/
-#define MLOCK_LIMIT (32*1024)
+#define MLOCK_LIMIT (8 * PAGE_SIZE)
/*
* Due to binary compatibility, the actual resource numbers