Mantis - gnupg
Viewing Issue Advanced Details
13 regular use tweak always 2002-12-08 00:54 2006-01-09 15:30
phil  
ajensen  
normal  
closed  
fixed  
none    
none  
0000013: \'using insecure memory\' warning
I vaguely remember there is some way to get rid of the
 \'WARNING: using insecure memory!\' warning when using gnupg. Unfortunately, I dont remember the specifics.

IIRC, it is whining that it is using memory that could potentially be swapped out to disk.

If you want to actually change the code, I think you can use mmap to allocate memory, and use the mmap tweaks to truely lock the memory down, and then you could truely disable the warning as it was originally intended.
Issue History

Notes
(0000199)
mike   
2003-11-09 00:50   
\'chmod u+s /opt/csw/bin/gpg\' will fix the error.
(0000200)
phil   
2003-11-09 12:30   
It would be better to fix it in the code, without requiring setuid.
(0000215)
ajensen   
2003-11-24 10:47   
SUID /opt/csw/bin/gpg or (better) use 1.2.3,REV=2003.11.20.
(0002923)
aalmroth   
2006-01-09 15:30   
Closing report