Project

General

Profile

Bug #114

gpg complains about insecure memory

Added by Igor Pashev over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
2013-04-26
Due date:
% Done:

0%

Estimated time:

Description

gpg complains about insecure memory if not running under root.

gpg: WARNING: using insecure memory!                                                                                                                                   
gpg: please see http://www.gnupg.org/faq.html for more information                                                                                                    

From the gpg FAQ:

Why do I get "gpg: Warning: using insecure memory!"
You see this warning if GPG is not able to lock pages against being swapped out to disk. However, on most modern system you should not see this message anymore because these systems allow any process to prevent a small number of memory pages from being swapped out to disk (using the mlock system call). Other (mostly older) systems don't allow this unless you install GPG as setuid(root). Locking pages against being swapped out is not necessary if your system uses an encrypted swap partition. In fact that is the best way to protect sensitive data from ending up on a disk. If your system allows for encrypted swap partitions, please make use of that feature. Note that GPG does not know about encrypted swap partitions and might print the warning; thus you should disabled the warning if your swap partition is encrypted. You may also want to disable this warning if you can't or don't want to install GnuPG setuid(root)

Also available in: Atom PDF