diff options
Diffstat (limited to 'pcr/polkit-elogind/99-parabola.rules')
-rw-r--r-- | pcr/polkit-elogind/99-parabola.rules | 21 |
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; + } +}); |