secmem.c on OS X
Gordon Worley
redbird at rbisland.cx
Sat Sep 15 04:57:01 CEST 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks to Laurie Brown <laurieb at mac.com> we have a version of
secmem.c that makes mlock work on OS X. I've pasted a diff below.
Anyway, I'm brining this here to see what needs to be done to get
this fix implemented (I realize that patching config.h is not the
right thing to do, but it's the thing that she got working :-)).
secmem.c.diff:
132,139d131
<
< #elif MLOCK_SET_PERMS
< /* try to set memory permissions */
< mprotect( p, n, PROT_EXEC | PROT_WRITE | PROT_READ);
< err = mlock( p, n );
< if( err && errno )
< err = errno;
<
config.h.diff:
99c99,100
< #define HAVE_BROKEN_MLOCK 1
- ---
> /*#define HAVE_BROKEN_MLOCK 1*/
> #define MLOCK_SET_PERMS 1
- --
Gordon Worley `When I use a word,' Humpty Dumpty
http://www.rbisland.cx/ said, `it means just what I choose
redbird at rbisland.cx it to mean--neither more nor less.'
PGP: 0xBBD3B003 --Lewis Carroll
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
Comment: keyserver http://pgpkeys.mit.edu:11371
iQA/AwUBO6K07W7zd/e707ADEQJBCACg2iEMD6GVz5tqzZiBmbSpCiCaW+IAn1n8
Il3NLejHvDjxB6/JNbPXA6Yc
=XxC2
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list