[Bug 550] New: RTT doesn't know about pam_limits and rtprio for non-root users

For more infomation about this bug, visit
Summary: RTT doesn't know about pam_limits and rtprio for non-
root users
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: kiwi [dot] net [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

On Linux systems with PAM and pam_limits installed you can set per-user limits
on realtime priorities, allowing non-root users to run real-time tasks. RTT
only checks for the root user and if the user isn't root, drops the task to
non-realtime. It probably should check for the alternate case of a non-root
user that does have realtime privileges.

At first look I can't find any header/development files that allow programmatic
access to the pam_limits (set in `/etc/security/limits.conf`), so I don't
currently have a solution to this one. If/when we do find this, I also don't
know how you want to structure the changes to the RTT source to deal with the
inevitable case of a user not having pam_limits installed?

[Bug 550] RTT doesn't know about pam_limits and rtprio for non-r

For more infomation about this bug, visit

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 [..] ...> 2008-06-05 11:21:12 ---
Thanks ! Applied on trunk/rtt

$ svn ci src/os/ -m"Fix bug #550: RTT doesn't know about pam_limits and rtprio
for non-root users.
> Applied patch by S Roderick.
> "
Sending src/os/gnulinux/fosi_internal.cpp
Transmitting file data .
Committed revision 29363.

[Bug 550] RTT doesn't know about pam_limits and rtprio for non-r

For more infomation about this bug, visit

--- Comment #1 from S Roderick <kiwi [dot] net [..] ...> 2008-05-24 20:52:41 ---
Created an attachment (id=302)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=302)
fixes bug

Works on Ubuntu 7.04 w/ RT kernel package