All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai and mlockall
@ 2007-06-25 13:00 Johan Borkhuis
       [not found] ` <cbe23c50706250904i57afbc0xfbce52fdb9dccc66@domain.hid>
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Johan Borkhuis @ 2007-06-25 13:00 UTC (permalink / raw)
  To: Xenomai-help

I am trying to run my Xenomai application as non-root. I disabled 
XENO_OPT_SECURITY_ACCESS to allow non-root users to run Xenomai 
applications. However, this causes my application to exit with the error:

Xenomai: process memory not locked (missing mlockall?)

Is there a way to avoid this error? I am running on an embedded system 
without swap and without disk, so there is no real need for mlock or 
mlockall.

Is there a way to "tweak" the CAP_IPC_LOCK capability of the system or 
the task so that I can run mlockall call, or is there a way to disable 
this check on Xenomai?

Kind regards,
    Johan Borkhuis


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Xenomai and mlockall
@ 2007-06-26  8:53 Fillod Stephane
  0 siblings, 0 replies; 6+ messages in thread
From: Fillod Stephane @ 2007-06-26  8:53 UTC (permalink / raw)
  To: Xenomai-help

Philippe Gerum wrote:
> On Mon, 2007-06-25 at 15:00 +0200, Johan Borkhuis wrote: 
>> I am trying to run my Xenomai application as non-root. I disabled 
>> XENO_OPT_SECURITY_ACCESS to allow non-root users to run Xenomai 
>> applications. However, this causes my application to exit with the
error:
[...]
>> Is there a way to "tweak" the CAP_IPC_LOCK capability of the system
or 
>> the task so that I can run mlockall call, or is there a way to
disable 
>> this check on Xenomai?
>
>No way to disable it, since doing so would basically make your system
>dysfunctional by risking page faults while not running over a regular
>Linux context (i.e. Xenomai's primary domain).

I think Johan was not asking to disable the mlockall, but to allow some
non-root user to be able to do it. He found his solution anyway, which
is worth an entry in the FAQ.

Since it is going to be a FAQ for those people in embedded business,
some
tricks to allow non-root operation of mlockall, SCHED_FIFO, etc., would
be 
useful. For example, you may hack the commoncap in linux/security/, 
or a better solution would be to rely on realtime-lsm[1][2], thanks to 
the audio folks.

[1] http://sourceforge.net/projects/realtime-lsm/
[2] http://lwn.net/Articles/110346/


Best Regards,
-- 
Stephane


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-26  8:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25 13:00 [Xenomai-help] Xenomai and mlockall Johan Borkhuis
     [not found] ` <cbe23c50706250904i57afbc0xfbce52fdb9dccc66@domain.hid>
2007-06-25 16:05   ` [Xenomai-help] Fwd: " Eric Noulard
2007-06-26  6:10     ` Johan Borkhuis
2007-06-25 18:04 ` [Xenomai-help] " Paul
2007-06-26  7:26 ` Philippe Gerum
  -- strict thread matches above, loose matches on Subject: below --
2007-06-26  8:53 Fillod Stephane

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.