diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-08-26 20:37:13 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-26 20:37:13 -0700 |
| commit | 7d867d4d2021b3b7c9368f77e952e39d4ff9d0d5 (patch) | |
| tree | ab23f233e64b1bd760461323efb0011161f991c3 /include/linux | |
| parent | bc5184b165b855bb02e22e0b09cf195b3e37059e (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.h | 2 |
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 |
