summaryrefslogtreecommitdiff
path: root/pcr/consolekit/25-consolekit.rules
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-08-28 17:47:32 -0500
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:14:58 -0300
commita566855682e5a4de24dadc5ff2aa58d21d802728 (patch)
treed3c8fe0f170d9441a1cc1b068c42940a918d7174 /pcr/consolekit/25-consolekit.rules
parent2f32593d2862736f4cbd06a7926245a2c02a2cd4 (diff)
consolekit-0.9.4-1: updating version
Diffstat (limited to 'pcr/consolekit/25-consolekit.rules')
-rw-r--r--pcr/consolekit/25-consolekit.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcr/consolekit/25-consolekit.rules b/pcr/consolekit/25-consolekit.rules
new file mode 100644
index 000000000..adddfb1bd
--- /dev/null
+++ b/pcr/consolekit/25-consolekit.rules
@@ -0,0 +1,8 @@
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.freedesktop.consolekit.system.stop" ||
+ action.id == "org.freedesktop.consolekit.system.restart" ||
+ action.id == "org.freedesktop.consolekit.system.hibernate" ||
+ action.id == "org.freedesktop.consolekit.system.suspend") {
+ return polkit.Result.YES;
+ }
+});