Pārlūkot izejas kodu

polkit bugfix

master
revīzija
f22a36b762
2 mainītis faili ar 25 papildinājumiem un 0 dzēšanām
  1. +17
    -0
      blueman-polkit-bug.yaml
  2. +8
    -0
      files/polkit-blueman.rules

+ 17
- 0
blueman-polkit-bug.yaml Parādīt failu

@@ -0,0 +1,17 @@

- hosts:
- desktops
- laptops
remote_user: root
handlers:
- reboot:
tasks:
- name: polkit rules directory
file:
path: /etc/polkit-1/rules.d
state: directory
- name: polkit blueman rules fix
copy:
src: polkit-blueman.rules
dest: /etc/polkit-1/rules.d/81-blueman.rules
notify: reboot

+ 8
- 0
files/polkit-blueman.rules Parādīt failu

@@ -0,0 +1,8 @@
polkit.addRule(function(action, subject) {
if ((action.id == "org.blueman.rfkill.setstate" ||
action.id == "org.blueman.network.setup") &&
subject.local && subject.active && subject.isInGroup("netdev")) {

return polkit.Result.YES;
}
});

Notiek ielāde…
Atcelt
Saglabāt