On Sun, 21.06.09 16:40, Fernando Lopez-Lezcano (nando(a)ccrma.Stanford.EDU) wrote:
On Fri, 2009-06-19 at 20:13 +0200, Lennart Poettering wrote:
Heya,
Just a quick announcement:
I just moved into Fedora Rawhide a little daemon called "RealtimeKit"
which will be enabled by default, and since it is now a dependency of
PulseAudio and things work how they work this will then not only be
available in Fedora 12 but also sooner or later in the other
distributions as well, installed by default.
What's wrong with using RLIMIT_RPRIO?
You mean RLIMIT_RTPRIO?
Yes.
The simple
fact that we cannot
enable that by default since it basically empowers the user to freeze
the machine. Also, asking the user to edit /etc/security/limits.conf
is certainly not user-friendly. We want to enable RT scheduling for
media aplications out-of-the-box.
As to configuration file editing, I think that in properly configured
distributions /etc/security/limits.conf is set up out of the box (when a
package that needs the privileges is installed) so that it is
unnecessary to edit it manually.
Doing that is broken, and ugly.
Doing authorization via groups is broken, since practically you can
never take group membership away. Which is precisely one of the
reasons why PolicyKit got created.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4