Hi,
i wrote a small helper library which allows applications to change
their realtime-priority without having root privilege.
the method is similar like utempter library: the library forks and
execs the checker program which is set as setuid-root. then the
checker proves the invoking application and user (group or host) is
registered in the list, and if it's ok, changes the RT-priority of the
process. since each user and each application is tested, it's more
secure. the advantage is also that no special kernel patches are
necessary.
the changes needed for applications are only
- add the following:
#define WRAPPER_USETSCHED
#include <usetsched.h>
- link with -lusetsched
i've tested (modified) jack and timidity. so far, it looks working
fine.
the detailed info is found at
http://www.alsa-project.org/~iwai/usetsched/index.html
the jack-patch is being prepared now. will be ready tomorrow.
ciao,
Takashi