Namespaces | |
| namespace | Activation |
| namespace | nativehost |
| namespace | Platform |
| namespace | RootGuard |
| namespace | wizard |
Classes | |
| class | DnsmasqBackend |
| struct | OpResult |
| struct | WgConfigParams |
| struct | WgKeyPair |
| struct | WgPeer |
| struct | WgStatus |
| struct | WgTunnelSpec |
| class | WireguardBackend |
Typedefs | |
| using | AliveFlag = std::shared_ptr<std::atomic<bool>> |
Functions | |
| AliveFlag | make_alive_flag () |
| template<typename Fn> | |
| void | if_alive (const AliveFlag &alive, Fn &&fn) |
| static void | load_list_file (const std::string &path, std::vector< std::string > &out, bool is_blacklist) |
| static void | ensure_loaded (const std::string &bl, const std::string &wl) |
| static bool | in_path_ (const char *bin) |
| static std::string | strip_ (std::string s) |
| static std::vector< std::string > | split_csv_ (const std::string &s) |
| static bool | parse_uint_range_ (const std::string &s, unsigned min, unsigned max) |
| static bool | valid_wg_key_ (const std::string &s) |
| static bool | valid_ip_ (const std::string &s) |
| static bool | valid_cidr_ (const std::string &s) |
| static bool | valid_hostname_ (const std::string &host) |
| static bool | valid_endpoint_ (const std::string &endpoint) |
| static bool | valid_iface_ (const std::string &iface) |
| static bool | validate_spec_ (const WgTunnelSpec &sp, std::string *err) |
| static bool | needs_default_route_ (const WgTunnelSpec &sp) |
Variables | |
| static std::mutex | g_mutex |
| static std::atomic< bool > | g_loaded {false} |
| static std::vector< std::string > | g_blacklist |
| static std::vector< std::string > | g_whitelist |
| static const char * | kKsTable = "bastionguard_ks" |
| using BastionGuard::AliveFlag = std::shared_ptr<std::atomic<bool>> |
Definition at line 65 of file LifetimeGuard.hpp.
|
static |
Definition at line 79 of file dnsmasq_backend.cpp.
References ensure_loaded(), g_blacklist, g_loaded, g_mutex, g_whitelist, and load_list_file().
Referenced by BastionGuard::DnsmasqBackend::add_to_blacklist(), BastionGuard::DnsmasqBackend::add_to_whitelist(), ensure_loaded(), BastionGuard::DnsmasqBackend::remove_from_blacklist(), and BastionGuard::DnsmasqBackend::remove_from_whitelist().
|
inline |
Definition at line 74 of file LifetimeGuard.hpp.
References if_alive().
Referenced by LiveScanDialog::append_output(), IdentityLeakPage::appendLog(), BankPage::auto_update_bank_list(), SettingsPage::build_antiphish_tab(), SettingsPage::build_antiransom_tab(), DashboardPage::check_updates_async(), ScanPage::cloudCheckMalwareBazaar(), ScanPage::cloudCheckMalwareBazaarWorker(), if_alive(), BackupPage::logSafe(), PasswordManagerPage::logSafe(), UpdatePage::logSafe(), PrivacyPage::manual_unlock_devices(), LiveScanDialog::mark_finished(), PrivacyPage::monitor_loop(), PhishingPage::on_analyze_requested(), BankPage::on_refresh_clicked(), UpdatePage::onUpdateClicked(), PrivacyPage::PrivacyPage(), ScanPage::readOutput(), USBScanPage::run_clamdscan_async(), PrivacyPage::run_privacy_script_async(), BackupPage::runAsyncStreaming(), ScanPage::scanAurAuto(), ScanPage::scanFileAutomatically(), PrivacyPage::show_next_alert(), PrivacyPage::show_permission_popup(), AntiRansomwarePage::startRealtimeLogReader(), UpdatePage::updateFromExtraSources(), and UpdatePage::updateSaneSecurity().
|
static |
Definition at line 109 of file WireguardBackend.cpp.
References in_path_().
Referenced by in_path_(), and BastionGuard::WireguardBackend::tooling_available().
|
static |
Definition at line 52 of file dnsmasq_backend.cpp.
References load_list_file().
Referenced by ensure_loaded(), and load_list_file().
|
inline |
Definition at line 67 of file LifetimeGuard.hpp.
References make_alive_flag().
Referenced by make_alive_flag().
|
static |
Definition at line 394 of file WireguardBackend.cpp.
References needs_default_route_(), BastionGuard::WgTunnelSpec::peers, and split_csv_().
Referenced by BastionGuard::WireguardBackend::connect(), and needs_default_route_().
|
static |
Definition at line 151 of file WireguardBackend.cpp.
References parse_uint_range_().
Referenced by parse_uint_range_(), valid_cidr_(), valid_endpoint_(), and validate_spec_().
|
static |
Definition at line 141 of file WireguardBackend.cpp.
References split_csv_(), and strip_().
Referenced by BastionGuard::WireguardBackend::connect(), BastionGuard::WireguardBackend::load_from_conf(), BastionGuard::WireguardBackend::load_from_params(), needs_default_route_(), split_csv_(), and validate_spec_().
|
static |
Definition at line 134 of file WireguardBackend.cpp.
References strip_().
Referenced by BastionGuard::WireguardBackend::generate_keys(), BastionGuard::WireguardBackend::load_from_conf(), BastionGuard::WireguardBackend::public_ip(), split_csv_(), BastionGuard::WireguardBackend::status(), and strip_().
|
static |
Definition at line 175 of file WireguardBackend.cpp.
References AF_INET, AF_INET6, parse_uint_range_(), and valid_cidr_().
Referenced by valid_cidr_(), and validate_spec_().
|
static |
Definition at line 207 of file WireguardBackend.cpp.
References AF_INET, AF_INET6, parse_uint_range_(), valid_endpoint_(), and valid_hostname_().
Referenced by valid_endpoint_(), and validate_spec_().
|
static |
Definition at line 192 of file WireguardBackend.cpp.
References valid_hostname_().
Referenced by valid_endpoint_(), and valid_hostname_().
|
static |
Definition at line 230 of file WireguardBackend.cpp.
References valid_iface_().
Referenced by BastionGuard::WireguardBackend::connect(), BastionGuard::WireguardBackend::killswitch_enable(), and valid_iface_().
|
static |
Definition at line 168 of file WireguardBackend.cpp.
References AF_INET, AF_INET6, and valid_ip_().
Referenced by valid_ip_(), and validate_spec_().
|
static |
Definition at line 162 of file WireguardBackend.cpp.
References valid_wg_key_().
Referenced by valid_wg_key_(), and validate_spec_().
|
static |
Definition at line 235 of file WireguardBackend.cpp.
References BastionGuard::WgTunnelSpec::addresses, BastionGuard::WgTunnelSpec::dns, BastionGuard::WgTunnelSpec::listen_port, BastionGuard::WgTunnelSpec::mtu, parse_uint_range_(), BastionGuard::WgTunnelSpec::peers, BastionGuard::WgTunnelSpec::private_key, split_csv_(), BastionGuard::WgTunnelSpec::valid(), valid_cidr_(), valid_endpoint_(), valid_ip_(), valid_wg_key_(), and validate_spec_().
Referenced by BastionGuard::WireguardBackend::connect(), BastionGuard::WireguardBackend::load_from_conf(), BastionGuard::WireguardBackend::load_from_params(), and validate_spec_().
|
static |
Definition at line 38 of file dnsmasq_backend.cpp.
Referenced by BastionGuard::DnsmasqBackend::add_to_blacklist(), ensure_loaded(), and BastionGuard::DnsmasqBackend::remove_from_blacklist().
|
static |
Definition at line 37 of file dnsmasq_backend.cpp.
Referenced by ensure_loaded().
|
static |
|
static |
Definition at line 39 of file dnsmasq_backend.cpp.
Referenced by BastionGuard::DnsmasqBackend::add_to_whitelist(), ensure_loaded(), and BastionGuard::DnsmasqBackend::remove_from_whitelist().
|
static |
Definition at line 568 of file WireguardBackend.cpp.
Referenced by BastionGuard::WireguardBackend::killswitch_active(), BastionGuard::WireguardBackend::killswitch_disable(), and BastionGuard::WireguardBackend::killswitch_enable().