RealtimeKit and the audio problem
Posted Jul 3, 2009 16:52 UTC (Fri) by quotemstr
In reply to: RealtimeKit and the audio problem
Parent article: RealtimeKit and the audio problem
Did you read the comment you're replying to, or did you not quite grasp it?
The OP said to use the setuid mechanism, which means that the process starts as root, grants itself realtime privileges, then irrecoverably becomes a normal process in every respect except that it can elevate its scheduling priority. Your concerns simply don't apply.
In fact, you could write a small wrapper to grant this realtime capability before launching the real program so that the bulk of the code doesn't have to mess with setuid-stuff at all. Err, wait -- it's been written, and it's called set_rlimits. (Granted, set_rlimits should use PAM, but that's a minor detail.)
to post comments)