]> code.delx.au - monosys/blobdiff - etc/polkit-1/rules.d/99-blueman.rules
updated polkit rules
[monosys] / etc / polkit-1 / rules.d / 99-blueman.rules
index 79c7b6e29ec9cf0b055472a94b67223567c7fd23..3ab8768a236fad275c92165b3591d3e5155263bc 100644 (file)
@@ -1,10 +1,9 @@
-/* Allow users in sudo group to use blueman feature requiring root without authentication */
 polkit.addRule(function(action, subject) {
-    if ((action.id == "org.blueman.network.setup" ||
-         action.id == "org.blueman.dhcp.client" ||
-         action.id == "org.blueman.rfkill.setstate" ||
-         action.id == "org.blueman.pppd.pppconnect") &&
-        subject.isInGroup("sudo")) {
-        return polkit.Result.YES;
+    if (subject.user == "some-user") {
+        if (action.id.indexOf("org.blueman.") == 0) {
+            polkit.log("action=" + action);
+            polkit.log("subject=" + subject);
+            return polkit.Result.YES;
+        }
     }
 });