sing-box.rules 451 B

12345678910
  1. polkit.addRule(function(action, subject) {
  2. if ((action.id == "org.freedesktop.resolve1.set-domains" ||
  3. action.id == "org.freedesktop.resolve1.set-default-route" ||
  4. action.id == "org.freedesktop.resolve1.set-dns-servers" ||
  5. action.id == "org.fedoraproject.FirewallD1.all" ||
  6. action.id == "org.fedoraproject.FirewallD1.config") &&
  7. subject.user == "sing-box") {
  8. return polkit.Result.YES;
  9. }
  10. });