| 35 | } // namespace |
| 36 | |
| 37 | FirewallController::FirewallController() : enabled_(false) |
| 38 | { |
| 39 | // If firewall on boot is enabled, restore boot rules |
| 40 | if (Utils::isFileExists(WS_POSIX_CONFIG_DIR "/boot_pf.conf")) { |
| 41 | spdlog::info("Applying boot pfctl rules"); |
| 42 | Utils::executeCommand("/sbin/pfctl", {"-e", "-f", WS_POSIX_CONFIG_DIR "/boot_pf.conf"}); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | FirewallController::~FirewallController() |
| 47 | { |
nothing calls this directly
no test coverage detected