bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Failing {lib,}gnome-keyring tests: How to make mlock/munlock available t


From: Svante Signell
Subject: Failing {lib,}gnome-keyring tests: How to make mlock/munlock available to non-root?
Date: Wed, 15 Oct 2014 09:52:46 +0200

Hi,

Currently libgnome-keyring and gnome-keyring secmem related tests fail,
falling back to mlock/munlock requiring root permissions to lock
memory. 
In the code we have:
  err = __get_privileged_ports (&hostpriv, NULL);
  if (err)
    return __hurd_fail (EPERM);

How to make mock/munlock available to the user (process owner), not only
root? It seems that POSIX allows both root-only and non-root.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mlock.html
"Appropriate privileges are required to lock process memory with
mlock()."

Linux has a non-root implementation and kFreeBSD is moving towards one
in kernel 10.x, see https://bugs.debian.org/628383

Thanks!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]