aboutsummaryrefslogtreecommitdiffstats
path: root/polkit
diff options
context:
space:
mode:
Diffstat (limited to 'polkit')
-rw-r--r--polkit/pacman-offline.rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/polkit/pacman-offline.rules b/polkit/pacman-offline.rules
new file mode 100644
index 0000000..82cc5c2
--- /dev/null
+++ b/polkit/pacman-offline.rules
@@ -0,0 +1,11 @@
+/* Allow members of the wheel group to run pacman-offline */
+
+polkit.addRule(
+ function(action, subject) {
+ if (action.id == "org.freedesktop.policykit.exec" &&
+ action.lookup("program") == "/usr/bin/pacman-offline" &&
+ subject.isInGroup("wheel")) {
+ return polkit.Result.YES;
+ }
+ }
+);