Revert "chore: Add polkit rules for scx_lavd"

This reverts commit d0d108ef3e416807d5005fd2304fd49fa121e5f0.
This commit is contained in:
Kyle Gospodnetich 2024-07-18 01:47:07 -07:00
parent c8a9a336e3
commit f8c871ef23
2 changed files with 0 additions and 27 deletions

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<vendor>Bazzite</vendor>
<vendor_url>https://github.com/ublue-os/bazzite/</vendor_url>
<action id="org.bazzite.schedulers.pkexec">
<description>Allows certain sched_ext schedulers to be run with root permissions</description>
<icon_name>package-x-generic</icon_name>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/scx_lavd</annotate>
</action>
</policyconfig>

View File

@ -1,6 +0,0 @@
polkit.addRule(function(action, subject) {
if (action.id == "org.bazzite.schedulers.pkexec" &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});