diff options
Diffstat (limited to 'testing/source/blueman/30-blueman-netdev-allow-access.rules')
-rw-r--r-- | testing/source/blueman/30-blueman-netdev-allow-access.rules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/source/blueman/30-blueman-netdev-allow-access.rules b/testing/source/blueman/30-blueman-netdev-allow-access.rules new file mode 100644 index 00000000..9ef313c7 --- /dev/null +++ b/testing/source/blueman/30-blueman-netdev-allow-access.rules @@ -0,0 +1,10 @@ +/* Allow users in netdev 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("netdev")) { + return polkit.Result.YES; + } +}); |