]> git.hungrycats.org Git - linux/commit
[PATCH] increase per-user mlock limit default to 32k
authorRik van Riel <riel@redhat.com>
Mon, 23 Aug 2004 06:06:58 +0000 (23:06 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 06:06:58 +0000 (23:06 -0700)
commitf947ff8af30f75cb9cf0e966caf8f4809ad1b92e
tree08040988a5cf4b6e1ea525873f2958220bc52b46
parent16698c49bbb42567c0bbc528d3820d18885e4642
[PATCH] increase per-user mlock limit default to 32k

Since various gnupg users have indicated that gpg wants to mlock 32kB of
memory, I created the patch below that increases the default mlock ulimit
to 32kB.

This is no security problem because it's trivial for processes to lock way
more memory than this in page tables, network buffers, etc.  In fact, since
this patch allows gnupg to mlock to prevent passphrase data from being
swapped out, the security people will probably like it ;)

This gets the new per-user mlock limit a bit more testing, too.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 files changed:
include/asm-alpha/resource.h
include/asm-arm/resource.h
include/asm-arm26/resource.h
include/asm-cris/resource.h
include/asm-h8300/resource.h
include/asm-i386/resource.h
include/asm-ia64/resource.h
include/asm-m68k/resource.h
include/asm-mips/resource.h
include/asm-parisc/resource.h
include/asm-ppc/resource.h
include/asm-ppc64/resource.h
include/asm-s390/resource.h
include/asm-sh/resource.h
include/asm-sparc/resource.h
include/asm-sparc64/resource.h
include/asm-v850/resource.h
include/asm-x86_64/resource.h
include/linux/resource.h