[Bug 613] New: RTT incorrectly restricts Xenomai tasks to root

For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=613>
Summary: RTT incorrectly restricts Xenomai tasks to root
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: blocker
Priority: P3
Component: Operating System Abstraction - Portability
AssignedTo: orocos-dev [..] ...
ReportedBy: kiwi [dot] net [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

You can setup Xenomai to allow non-root users to run real-time tasks [1]. This
is a similar situation to the pam changes we made for GNU Linux. The first
check in `fosi_internal.cpp::rtos_task_create_main()` needs to be
removed/modified, however, I do not know how to query the Xenomai runtime to
get the allowed use gid (you can set it multiple ways, and I don't know if they
all end up in one place). For now, perhaps we could change this check to a
warning and allow it to continue, instead of error and exit?

S

[1] http://www.xenomai.org/index.php/Non-root_RT

[Bug 613] RTT incorrectly restricts Xenomai tasks to root

For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=613>

Peter Soetens <peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
CC| |peter [dot] soetens [..] ...

--- Comment #2 from Peter Soetens <peter [dot] soetens [..] ...> 2009-01-21 22:40:13 ---
(In reply to comment #1)
> Created an attachment (id=371)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=371) [details]
> Check Xenomai version and issue warning if not root
>

Agreed. Patch applied on trunk/rtt r29850.

commit a1d01173d271117a91362c846a44b84ceb381f39
Author: Peter Soetens <peter [dot] soetens [..] ...>
Date: Wed Jan 21 22:36:14 2009 +0100

Do not bail out when not root and using recent Xenomai versions.

Patch by S. Roderick. We'll improve (or remove) the 'root' detection if
we can find a better way of seeing if root privileges are required.

[Bug 613] RTT incorrectly restricts Xenomai tasks to root

For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=613>

--- Comment #1 from S Roderick <kiwi [dot] net [..] ...> 2009-01-21 21:02:33 ---
Created an attachment (id=371)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=371)
Check Xenomai version and issue warning if not root