All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai-help] Xenomai and mlockall
@ 2007-06-26  8:53 Fillod Stephane
  2007-06-26  9:21 ` [Xenomai-core] Group-based RT caps (was: [Xenomai-help] Xenomai and mlockall) Jan Kiszka
  0 siblings, 1 reply; 10+ 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] 10+ messages in thread

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-26  8:53 [Xenomai-help] Xenomai and mlockall Fillod Stephane
2007-06-26  9:21 ` [Xenomai-core] Group-based RT caps (was: [Xenomai-help] Xenomai and mlockall) Jan Kiszka
2007-06-26  9:30   ` [Xenomai-core] [Xenomai-help] Group-based RT caps Jan Kiszka
2007-06-28 10:25   ` [Xenomai-core] " Jan Kiszka
2007-06-28 10:52     ` Gilles Chanteperdrix
2007-06-28 17:33       ` Jan Kiszka
2007-06-29  8:04     ` Johan Borkhuis
2007-06-29  8:11       ` Jan Kiszka
2007-06-29  8:15         ` Jan Kiszka
2007-06-29  8:41           ` Johan Borkhuis

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.