diff options
author | freaj <freaj@riseup.net> | 2015-03-25 19:14:34 +0100 |
---|---|---|
committer | freaj <freaj@riseup.net> | 2015-03-25 19:14:34 +0100 |
commit | 3d9ee3d1faab8fea2cdf06bc766106fe1479ed3c (patch) | |
tree | 937f6fbc969605bcb7737c376c6867f5dc75e830 /pcr/consolekit/75-consolekit.rules | |
parent | 00ff0f8a71674190bfdb20b081c5d2289557e882 (diff) |
consolekit-0.9.2-4: add new package to [pcr]
Diffstat (limited to 'pcr/consolekit/75-consolekit.rules')
-rw-r--r-- | pcr/consolekit/75-consolekit.rules | 8 |
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; + } +}); |