aports/community/rtkit/50-rtkit.rules
Marian Buschsieweke 70e9e8a1a4 community/rtkit: add polkit rules
Add a rule to allow members of the polkit group enable realtime
scheduling for their processes. This can be useful for users of
pipewire that are not running it in an (e)logind session, e.g. users
of seatd or headless setups.

fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13432
2022-02-21 10:21:01 +00:00

8 lines
200 B
Plaintext

polkit.addRule(function(action, subject) {
if (subject.isInGroup("rtkit")) {
if (action.id.indexOf("org.freedesktop.RealtimeKit1.") == 0) {
return polkit.Result.YES;
}
}
});