Skip to content
API Documentation
BastionGuard™
wizard_setup.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{wizard_setup.cpp}
namespace  BastionGuard
namespace  BastionGuard::wizard

Functions

static bool anonymous_namespace{wizard_setup.cpp}::run_cmd_capture (const std::string &cmd, std::string *out=nullptr, int *exit_code=nullptr)
static std::string anonymous_namespace{wizard_setup.cpp}::elev_cmd (const std::string &inner, const std::string &action_id="org.BastionGuard.maintenance")
static std::string anonymous_namespace{wizard_setup.cpp}::user_data_dir ()
static bool anonymous_namespace{wizard_setup.cpp}::write_temp_script_and_elevate (const std::string &script_contents, std::string *out_log=nullptr)
static bool anonymous_namespace{wizard_setup.cpp}::file_exists (const std::string &path)
static std::string anonymous_namespace{wizard_setup.cpp}::run_capture (const std::string &cmd)
static bool anonymous_namespace{wizard_setup.cpp}::detect_resolvectl ()
static bool anonymous_namespace{wizard_setup.cpp}::detect_nmcli ()
static std::string anonymous_namespace{wizard_setup.cpp}::find_active_interface_nmcli ()
static std::string anonymous_namespace{wizard_setup.cpp}::find_active_link_resolvectl ()
bool BastionGuard::wizard::run_all_elevated_steps (const std::vector< std::string > &commands, std::string *out_log)
void BastionGuard::wizard::gen_cert_commands (std::vector< std::string > &out)
void BastionGuard::wizard::gen_web_commands (std::vector< std::string > &out, int http_port, int https_port)
void BastionGuard::wizard::gen_blacklist_commands (std::vector< std::string > &out, const std::string &packaged_blacklist)
bool BastionGuard::wizard::setup_firewall_ports ()
bool BastionGuard::wizard::install_nftables_conf ()
bool BastionGuard::wizard::install_system_ca (const std::string &ca_crt_path)
bool BastionGuard::wizard::setup_certificates ()
bool BastionGuard::wizard::install_phishing_blacklist (const std::string &src, const std::string &dst)
bool BastionGuard::wizard::install_native_host (const std::string &, const std::string &extension_id)
bool BastionGuard::wizard::run_wizard_setup (const std::vector< std::string > &options)