2008-10-15 12:33:45

by Kurt Garloff

[permalink] [raw]
Subject: [PATCH 1/1] default mlock limit 32k->64k

Hi,

normal users can mlock memory up to the value defined in RLIMIT_MLOCK.
The number used to 0 for a long time and has been changed to 8 pages
(32k on 4k page systems) a number of years ago to accommodate the needs
of gpg, which is one of the few programs that a normal user runs and
which needs mlock (to prevent passphrase and key from leaking into
swap).

Nowadays, we have gpg2, and the need has increased to 64k.
Attached patch does change the default to 64k, independent of the
PAGE_SIZE. (Unless PAGE_SIZE is larger than 64k, then we allow one
page.)

Please apply.
--
Kurt Garloff, VP Business Development -- OPS, Novell Inc.


Attachments:
(No filename) (0.00 B)
(No filename) (194.00 B)
Download all attachments