mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
Closes: Debian bug #1093065. These files were only present to serve polkit = 105 in Debian bullseye. Alternate files .rules already being shipped for polkit > 105. Tests: - Install infinoted and enable/disable firewalld. infinoted ports have been enabled/disabled in the firewall as noticed using firewall-cmd. - Creating/deleting network manager connections works well. nmcli shows the updates. - Add backup location page shows list of disks properly. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
14 lines
438 B
Plaintext
14 lines
438 B
Plaintext
/*
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
polkit.addRule(function(action, subject) {
|
|
if ((action.id == "org.fedoraproject.FirewallD1.config.info" ||
|
|
action.id == "org.fedoraproject.FirewallD1.config" ||
|
|
action.id == "org.fedoraproject.FirewallD1.direct.info" ||
|
|
action.id == "org.fedoraproject.FirewallD1.direct") &&
|
|
subject.user == "plinth") {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|