https://bugs.kde.org/show_bug.cgi?id=475209

            Bug ID: 475209
           Summary: Actually disable bluetooth. The checkbox does not
                    work.
    Classification: Plasma
           Product: Bluedevil
           Version: 5.27.8
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: daemon
          Assignee: now...@gmail.com
          Reporter: amanita+kdeb...@mailbox.org
                CC: plasma-b...@kde.org
  Target Milestone: ---

The checkbox does not work, which is crazy. Bluetooth is always disabled, which
is a battery drain and privacy and security risk.

Reproduce:
1. Pair bluetooth headphones / Speakers and set them as sound output in the
"Volume" applet
2. Turn the speakers off so they disconnect
3.  Disable Bluetooth via the checkbox
4. Turn the headphones / speakers on again.

What happens: they connect! This is crazy and indicates that at least saved
devices are automatically pairing. Does the checkbox only disable the scanning?
It can't fully, as the device has to be searched, even if its ID is recognized.

This means the device is permanently visible, with its name not changeable
through a GUI, leaking maybe sensible information to for example bluetooth
tracking beacons.

What should happen:
- put a polkit exception or otherwise allow the checkbox to run this command,
without password prompt, when the user is wheel:

pkexec systemctl disable bluetooth.service

Maybe this could work?


sudo cat > /etc/polkit-1/rules.d/99-bluetooth.service <<EOF
> polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.systemd1.manage-units" &&
        action.lookup("unit") == "bluetooth.service" &&
        subject.isInGroup("wheel")) {
            return polkit.Result.YES;
    }
});
EOF

sudo systemctl restart polkit



The service that needs the polkit password is "org.freedesktop.policykit.exec".

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to