1
0
Fork 0
mirror of synced 2024-11-25 11:35:37 -05:00

tighten down some polkit rules

This commit is contained in:
TNE 2021-12-03 06:30:41 +01:00
parent d5680db6ee
commit 863c9b4e65
2 changed files with 1 additions and 35 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Librewish <librewish@gmail.com> # Maintainer: Librewish <librewish@gmail.com>
pkgname=garuda-common-settings pkgname=garuda-common-settings
pkgver=2.4.2 pkgver=2.4.3
pkgrel=1 pkgrel=1
arch=('any') arch=('any')
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"

View file

@ -52,15 +52,6 @@ polkit.addRule(function(action, subject) {
} }
}); });
polkit.addRule(function(action, subject) {
if ((action.id == "org.archlinux.pkexec.gparted" ||
action.id == "org.kde.kpmcore.externalcommand.init") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) { polkit.addRule(function(action, subject) {
if ((action.id == "org.opensuse.cupspkhelper.mechanism.all-edit") && if ((action.id == "org.opensuse.cupspkhelper.mechanism.all-edit") &&
subject.isInGroup("wheel")) subject.isInGroup("wheel"))
@ -69,14 +60,6 @@ polkit.addRule(function(action, subject) {
} }
}); });
polkit.addRule(function(action, subject) {
if ((action.id == "org.libvirt.unix.manage") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) { polkit.addRule(function(action, subject) {
if ((action.id == "org.corectrl.helper.init" || if ((action.id == "org.corectrl.helper.init" ||
@ -86,20 +69,3 @@ polkit.addRule(function(action, subject) {
return polkit.Result.YES; return polkit.Result.YES;
} }
}); });
polkit.addRule(function(action, subject) {
if ((action.id == "in.teejeetech.pkexec.timeshift-gtk" ||
action.id == "in.teejeetech.pkexec.timeshift") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if ((action.id == "org.garuda.btfrs-assistant.pkexec.policy.run") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
}
});