Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[connman] D-Bus method to reload firewall configurations. JB#44071
This commit adds a D-Bus method "Reload" to net.connman.Firewall interface using path "/". With this method call firewall.c is requested to load all new configurations from CONFIGDIR/firewall.d/. Access to the method is granted for root and privileged. The config files must have a firewall.conf suffix and if the file is read properly the rules will be taken into use immediatedly. This is done for all connected services also, which get the new rules added into their firewall and enabled in iptables. If a service is not connected (firewall is not enabled) the rules are just added to the end. No sorting of rules is done yet. The rules are read in firewall configuration file order (alphabetical) only when connman is (re)started. This also contains a change to read each firewall configuration file into a sorted list. This list is first used to check if the configuration file is already used or not. If configuration file is already read, it will not be re-read.
- Loading branch information
1 parent
279e86b
commit 10b5629
Showing
9 changed files
with
575 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.