summaryrefslogtreecommitdiff
path: root/pcr/consolekit/75-consolekit.rules
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/consolekit/75-consolekit.rules')
-rw-r--r--pcr/consolekit/75-consolekit.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcr/consolekit/75-consolekit.rules b/pcr/consolekit/75-consolekit.rules
new file mode 100644
index 000000000..adddfb1bd
--- /dev/null
+++ b/pcr/consolekit/75-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;
+ }
+});