• Rik van Riel's avatar
    [PATCH] increase per-user mlock limit default to 32k · f947ff8a
    Rik van Riel authored
    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: default avatarRik van Riel <riel@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    f947ff8a
resource.h 1.48 KB