Secure text editor?

Robert J. Hansen rjh at sixdemonbag.org
Mon May 14 21:52:37 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> (Developers familiar with swap-locked memory:  I'd appreciate at  
> least a
> short explanation of how it works to someone who understands ISO C but
> not necessarily OS-specific APIs.  Can stack memory be locked, or only
> heap memory?  Would there be any way to load a whole, full-featured  
> text
> editor, such as the 1.8MiB vim on my machine, entirely into locked RAM
> without screwing something up?)

Wildly implementation dependent.  POSIX 1003.1b-1993 and 1003.1i-1995  
are the canonical references, but different OSes will implement it to  
different extents.

The mlock manpage is probably the best place to begin from.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iFYEAREIAAYFAkZIvgUACgkQf2XByo0Cu7MF0gDcD5Wh59IE6QH27hPkYW8fN7+H
UUbsmg1JEjxV7gDggvxDQajFvl8tohk6CXFDuEnxfM5qLMxMPQ90cYkBHAQBAQgA
BgUCRki+BQAKCRC3APSC/q+BCbtQB/wOuqH9WYOHiYILstPksNoD8nHlzhMpyJk1
cnFgPl2Cbgih3219ragxAUe1n8WsKj4Q2O/+caldEOcLEA7Ez2NA+27bw+6hYTJW
ehBC6JV0N6HrhBvMKZjw8k8TCwtaigEDK58qRsXMQBiVsSIJ0bPvczfBRao/MDmk
78wJzTRqIc5uaYDMpYFq9utYBZFCF6EJbw73fqAbPxPqc3S/a0b9apBKPrsMbw5h
y7pQOf2H5UFseFjygLoLJBZTuhzazJQCdVnE0Gf7wRPu0IUXLQrbAXBiL/l5T5E0
lp1lKb0rH4TBYFcoAkWYHw0vAAH1EMoBw3CvBwseMkxDJwrOMHTd
=DxDE
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list