Does not lock memory
Bug #10638 reported by
Matt Zimmerman
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnupg (Ubuntu) |
Fix Released
|
Critical
|
Martin Pitt |
Bug Description
Every time gpg is invoked, it complains about insecure memory. It seems that
gnupg does not even attempt to lock memory if it finds that it does not have
root privileges. Since our kernel allows this without root privileges, gpg
should not make this assumption.
#elif defined(HAVE_MLOCK)
uid_t uid;
int err;
uid = getuid();
[...]
if( uid ) {
errno = EPERM;
err = errno;
}
else {
err = mlock( p, n );
if( err && errno )
err = errno;
}
To post a comment you must log in.
I'll care for that ASAP.
Luckily this works fine in Warty, so this change must have been introduced in Hoary.