[9421] in cryptography@c2.net mail archive
Are there any security conserns with using mprotect???
daemon@ATHENA.MIT.EDU (laurieb@mac.com)
Thu Sep 20 10:32:39 2001
Date: Thu, 20 Sep 2001 07:30:17 -0700 (PDT)
From: <laurieb@mac.com>
To: <cryptography@wasabisystems.com>
In-Reply-To: <v03110702b7cf4ebeed23@[165.247.209.101]>
Message-ID: <Pine.LNX.4.33L2.0109200724020.12934-100000@grace.speakeasy.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
This may be the correct forum for this question (and may not)
I am using Darwin (a BSD derivative) and in order to use mlock - you first have
to run mprotect giving read, write, execute permissions on the memory that you
want to lock.
Since the reason that I am using mlock is to prevent paging of the memory to
disk and to add to the security of that memory contents - is the use of mprotect
going to compromise this? Understand that on this system you can only use mlock
if you run mprotect first.
I can supply sample source code if anyone is interested.
Thanks in advance,
Laurie
---------------------------------------------------------------------
The Cryptography Mailing List
Unsubscribe by sending "unsubscribe cryptography" to majordomo@wasabisystems.com