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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFI9beIxmLh6hyYd04RAmJWAKCo5TALOE1yqX2TQLJgjL A1o8ZFwgCgtc/T
4D8IZRJSwHza+1UGNNdG7bQ=
=R4xw
-----END PGP SIGNATURE-----