diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2015-08-28 23:05:00 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2015-08-28 23:05:00 -0400 |
commit | f46bdf9d5bfc6eeae828539a234e957fe2b2e042 (patch) | |
tree | 560f0a1e67351a7a75900b4ddc41a34158873d72 /pcr/consolekit/25-consolekit.rules | |
parent | 698cfed94cf9c654ecf39a809821359ba6f4c70c (diff) | |
parent | da0dc67b72e2c1a374260ea6ef5aa3f0f805d90d (diff) |
merge
Diffstat (limited to 'pcr/consolekit/25-consolekit.rules')
-rw-r--r-- | pcr/consolekit/25-consolekit.rules | 8 |
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; + } +}); |