FreedomBox/plinth/modules/firewall/data/usr/share/polkit-1/rules.d/50-freedombox-firewalld.rules
Sunil Mohan Adapa 67fd747588
firewall, networks, storage: Drop polkit pkla files
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>
2025-01-24 11:40:36 +02:00

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;
}
});