diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-13 20:41:10 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-13 20:41:10 +0000 |
commit | fe135b820483b369b51c9dbf860793289a51811d (patch) | |
tree | 8324a00e4485ee32f31b94248cf7e8535789fb01 /org.mageia.qarepo-helper.rules | |
parent | 5709e009a6ca69fa9cb8963aeb26cae7403afd3c (diff) | |
download | qarepo-fe135b820483b369b51c9dbf860793289a51811d.tar qarepo-fe135b820483b369b51c9dbf860793289a51811d.tar.gz qarepo-fe135b820483b369b51c9dbf860793289a51811d.tar.bz2 qarepo-fe135b820483b369b51c9dbf860793289a51811d.tar.xz qarepo-fe135b820483b369b51c9dbf860793289a51811d.zip |
Add the qarepo-helper script and its associated polkit rules/actions.
Diffstat (limited to 'org.mageia.qarepo-helper.rules')
-rw-r--r-- | org.mageia.qarepo-helper.rules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/org.mageia.qarepo-helper.rules b/org.mageia.qarepo-helper.rules new file mode 100644 index 0000000..8408234 --- /dev/null +++ b/org.mageia.qarepo-helper.rules @@ -0,0 +1,10 @@ +polkit.addRule(function(action, subject) { + if (action.id == "org.mageia.qarepo-helper.pkexec.run" && + subject.local && subject.active && + subject.isInGroup("qarepo")) { + return polkit.Result.YES; + } else { + return polkit.Result.AUTH_ADMIN_KEEP; + } +}); + |