summaryrefslogtreecommitdiff
path: root/pcr/polkit-elogind/99-parabola.rules
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 18:26:32 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 18:26:32 -0500
commit283b40c16823d0b8d08eb01600aab31c6c58d607 (patch)
treed2b6189b71358020f6ed7a3ea18eea82f89ee7b1 /pcr/polkit-elogind/99-parabola.rules
parent2168c30b78df3381dddc1c5bea5c627b4c86c669 (diff)
downloadabslibre-283b40c16823d0b8d08eb01600aab31c6c58d607.tar.gz
abslibre-283b40c16823d0b8d08eb01600aab31c6c58d607.tar.bz2
abslibre-283b40c16823d0b8d08eb01600aab31c6c58d607.zip
polkit-elogind-0.113+29+g3272a98-8: rebuild
Diffstat (limited to 'pcr/polkit-elogind/99-parabola.rules')
-rw-r--r--pcr/polkit-elogind/99-parabola.rules21
1 files changed, 21 insertions, 0 deletions
diff --git a/pcr/polkit-elogind/99-parabola.rules b/pcr/polkit-elogind/99-parabola.rules
new file mode 100644
index 000000000..22c84181b
--- /dev/null
+++ b/pcr/polkit-elogind/99-parabola.rules
@@ -0,0 +1,21 @@
+polkit.addRule(function(action, subject) {
+ if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) {
+ return polkit.Result.YES;
+ }
+});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.freedesktop.login1.power-off" ||
+ action.id == "org.freedesktop.login1.reboot" ||
+ action.id == "org.freedesktop.login1.hibernate" ||
+ action.id == "org.freedesktop.login1.suspend") {
+ return polkit.Result.YES;
+ }
+});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.freedesktop.upower.hibernate" ||
+ action.id == "org.freedesktop.upower.suspend") {
+ return polkit.Result.YES;
+ }
+});