Re: RT exec for exercising RT kernel capabilities

Lee Revell
2006-06-09T17:21:44Z

On Fri, 2006-06-09 at 11:15 +0200, Serge Noiraud wrote:
> In the README, you say :
> ...
> The exec must be run as root because of the use of mlockall,
> sched_setscheduler, and sched_setaffinity calls. Sorry but
> there has been no attempt to use the Linux CAPABILITIES API
> so that it could be run as regular user.
> ...
>
> It's false if you use the LSM patch from here :
> http://sourceforge.net/projects/realtime-lsm/

Realtime LSM is deprecated, with a reasonably recent PAM and glibc
(Ubuntu Dapper and FC5 should both be good) it's not necessary.

Just add something like:

* - rtprio 99
* - nice -20
* - memlock 500000

to /etc/security/limits.conf

Lee