All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai and capabilities
@ 2010-10-11 16:11 Anders Blomdell
  2010-10-11 16:17 ` Gilles Chanteperdrix
  2010-10-11 16:17 ` Jan Kiszka
  0 siblings, 2 replies; 19+ messages in thread
From: Anders Blomdell @ 2010-10-11 16:11 UTC (permalink / raw)
  To: xenomai

We are planning to extend our use of xenomai to a wider audience at our
department, and therefore I would like to know which is the better way to let
users run xenomai programs with a minimum of system privileges, the
possibilities I can see are:

1. Let the user run anything as root; simple but obviously a security nightmare.
2. Write a suid program that let's its children inherit the right capabilities
and then does a seteuid and does an execve; unfortunately this implies that the
program that is execve'd has the right capabilties set [which has to be done by
the suid program as well], and this can only be done on filesystems that can
have extended attributes (i.e. no FAT, NFS, etc).
3. Write a suid program that drops all unneeded privileges and then use dlopen
and friends to execute the user code.

I guess that there exists better ways, so somebody please enlighten me.

Regards

Anders Blomdell
-- 
Anders Blomdell                  Email: anders.blomdell@domain.hid
Department of Automatic Control
Lund University                  Phone:    +46 46 222 4625
P.O. Box 118                     Fax:      +46 46 138118
SE-221 00 Lund, Sweden


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

end of thread, other threads:[~2010-10-12 18:13 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 16:11 [Xenomai-help] Xenomai and capabilities Anders Blomdell
2010-10-11 16:17 ` Gilles Chanteperdrix
2010-10-11 16:17 ` Jan Kiszka
2010-10-11 16:23   ` Gilles Chanteperdrix
2010-10-11 16:44     ` Jan Kiszka
2010-10-11 16:49       ` Gilles Chanteperdrix
2010-10-11 16:58         ` Jan Kiszka
2010-10-12  9:25           ` Anders Blomdell
2010-10-12 10:23             ` Anders Blomdell
2010-10-12 12:56               ` Anders Blomdell
2010-10-12 13:53                 ` Gilles Chanteperdrix
2010-10-12 14:42                   ` Anders Blomdell
2010-10-12 14:57                     ` Gilles Chanteperdrix
2010-10-12 15:29                       ` Anders Blomdell
2010-10-12 15:41                         ` Gilles Chanteperdrix
2010-10-12 15:33                     ` Philippe Gerum
2010-10-12 17:20                 ` Jan Kiszka
2010-10-12 18:01                   ` Anders Blomdell
2010-10-12 18:13                     ` Jan Kiszka

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.