Classes | |
| class | WizardWindow |
Functions | |
| std::string | shell_quote (const std::string &argument) |
| bool | run_all_elevated_steps (const std::vector< std::string > &commands, std::string *out_log) |
| void | gen_cert_commands (std::vector< std::string > &out) |
| void | gen_web_commands (std::vector< std::string > &out, int http_port, int https_port) |
| void | gen_blacklist_commands (std::vector< std::string > &out, const std::string &packaged_blacklist) |
| bool | setup_firewall_ports () |
| bool | install_nftables_conf () |
| bool | install_system_ca (const std::string &ca_crt_path) |
| bool | setup_certificates () |
| bool | install_phishing_blacklist (const std::string &src, const std::string &dst) |
| bool | install_native_host (const std::string &, const std::string &extension_id) |
| bool | run_wizard_setup (const std::vector< std::string > &options) |
| void | gen_resolv_commands (std::vector< std::string > &out) |
| void | gen_firewall_commands (std::vector< std::string > &out) |
| bool | setup_resolv_override () |
| bool | restore_resolv_backup () |
| static std::vector< std::string > | elev_args (const std::string &inner) |
| static std::string | user_data_dir () |
| std::string | detect_webserver () |
| std::string BastionGuard::wizard::detect_webserver | ( | ) |
Definition at line 157 of file wizard_window.cpp.
References detect_webserver().
Referenced by detect_webserver().
|
static |
Definition at line 51 of file wizard_window.cpp.
References elev_args().
Referenced by BastionGuard::wizard::WizardWindow::configure_dnsmasq(), elev_args(), and BastionGuard::wizard::WizardWindow::run_enable_user_agents().
| void BastionGuard::wizard::gen_blacklist_commands | ( | std::vector< std::string > & | out, |
| const std::string & | packaged_blacklist ) |
Definition at line 279 of file wizard_setup.cpp.
References gen_blacklist_commands().
Referenced by gen_blacklist_commands(), gen_firewall_commands(), and BastionGuard::wizard::WizardWindow::worker_run().
| void BastionGuard::wizard::gen_cert_commands | ( | std::vector< std::string > & | out | ) |
Definition at line 249 of file wizard_setup.cpp.
References _, gen_cert_commands(), and BastionGuard::Platform::is_fedora_rhel_family().
Referenced by gen_cert_commands(), gen_firewall_commands(), and BastionGuard::wizard::WizardWindow::worker_run().
| void BastionGuard::wizard::gen_firewall_commands | ( | std::vector< std::string > & | out | ) |
References gen_blacklist_commands(), gen_cert_commands(), gen_firewall_commands(), gen_web_commands(), run_all_elevated_steps(), and run_wizard_setup().
Referenced by gen_firewall_commands().
| void BastionGuard::wizard::gen_resolv_commands | ( | std::vector< std::string > & | out | ) |
References gen_resolv_commands().
Referenced by gen_resolv_commands().
| void BastionGuard::wizard::gen_web_commands | ( | std::vector< std::string > & | out, |
| int | http_port, | ||
| int | https_port ) |
Definition at line 270 of file wizard_setup.cpp.
References _, and gen_web_commands().
Referenced by gen_firewall_commands(), gen_web_commands(), and BastionGuard::wizard::WizardWindow::worker_run().
| bool BastionGuard::wizard::install_native_host | ( | const std::string & | , |
| const std::string & | extension_id ) |
Definition at line 691 of file wizard_setup.cpp.
References _, and install_native_host().
Referenced by install_native_host(), BastionGuard::wizard::WizardWindow::install_native_host(), restore_resolv_backup(), and run_wizard_setup().
| bool BastionGuard::wizard::install_nftables_conf | ( | ) |
Definition at line 487 of file wizard_setup.cpp.
References _, and install_nftables_conf().
Referenced by install_nftables_conf(), and restore_resolv_backup().
| bool BastionGuard::wizard::install_phishing_blacklist | ( | const std::string & | src, |
| const std::string & | dst ) |
Definition at line 678 of file wizard_setup.cpp.
References _, and install_phishing_blacklist().
Referenced by install_phishing_blacklist(), and restore_resolv_backup().
| bool BastionGuard::wizard::install_system_ca | ( | const std::string & | ca_crt_path | ) |
Definition at line 549 of file wizard_setup.cpp.
References _, install_system_ca(), and BastionGuard::Platform::is_fedora_rhel_family().
Referenced by install_system_ca(), restore_resolv_backup(), and setup_certificates().
| bool BastionGuard::wizard::restore_resolv_backup | ( | ) |
| bool BastionGuard::wizard::run_all_elevated_steps | ( | const std::vector< std::string > & | commands, |
| std::string * | out_log ) |
Definition at line 190 of file wizard_setup.cpp.
References _, and run_all_elevated_steps().
Referenced by gen_firewall_commands(), run_all_elevated_steps(), run_wizard_setup(), and BastionGuard::wizard::WizardWindow::worker_run().
| bool BastionGuard::wizard::run_wizard_setup | ( | const std::vector< std::string > & | options | ) |
Definition at line 820 of file wizard_setup.cpp.
References _, install_native_host(), BastionGuard::Platform::is_fedora_rhel_family(), run_all_elevated_steps(), and run_wizard_setup().
Referenced by gen_firewall_commands(), and run_wizard_setup().
| bool BastionGuard::wizard::setup_certificates | ( | ) |
Definition at line 622 of file wizard_setup.cpp.
References _, install_system_ca(), BastionGuard::Platform::is_fedora_rhel_family(), and setup_certificates().
Referenced by restore_resolv_backup(), and setup_certificates().
| bool BastionGuard::wizard::setup_firewall_ports | ( | ) |
Definition at line 289 of file wizard_setup.cpp.
References _, bg_process::run(), setup_firewall_ports(), and shell_quote().
Referenced by restore_resolv_backup(), and setup_firewall_ports().
| bool BastionGuard::wizard::setup_resolv_override | ( | ) |
References setup_resolv_override().
Referenced by setup_resolv_override().
|
inline |
Definition at line 10 of file shell_quote.hpp.
References shell_quote().
Referenced by BastionGuard::wizard::WizardWindow::configure_dnsmasq(), anonymous_namespace{wizard_setup.cpp}::elev_cmd(), BastionGuard::wizard::WizardWindow::run_enable_user_agents(), setup_firewall_ports(), shell_quote(), and BastionGuard::wizard::WizardWindow::worker_run().
|
static |
Definition at line 57 of file wizard_window.cpp.
References user_data_dir().
Referenced by user_data_dir().