summaryrefslogtreecommitdiffstats
path: root/polkit/pacman-offline.rules
blob: 82cc5c2004dcd1c7841eedb17625442daa1a6758 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;
		}
	}
);