mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-07-25 07:24:07 +08:00
11 lines
451 B
Plaintext
11 lines
451 B
Plaintext
polkit.addRule(function(action, subject) {
|
|
if ((action.id == "org.freedesktop.resolve1.set-domains" ||
|
|
action.id == "org.freedesktop.resolve1.set-default-route" ||
|
|
action.id == "org.freedesktop.resolve1.set-dns-servers" ||
|
|
action.id == "org.fedoraproject.FirewallD1.all" ||
|
|
action.id == "org.fedoraproject.FirewallD1.config") &&
|
|
subject.user == "sing-box") {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|