Classes | |
| struct | Settings |
Functions | |
| static std::string | home_dir () |
| static void | write_file (const fs::path &p, const std::string &content) |
| static void | remove_lines_containing (const fs::path &p, const std::string &needle) |
| static fs::path | firefox_active_profile (const fs::path &profiles_dir) |
| static void | firefox_set_profile (const fs::path &profile, const Settings &s) |
| static void | firefox_clear_profile (const fs::path &profile) |
| static void | configure_firefox_family (const Settings &s, bool clear) |
| static std::string | make_chromium_policy (const Settings &s) |
| static void | chromium_set_policy (const fs::path &dir, const Settings &s) |
| static void | chromium_clear_policy (const fs::path &dir) |
| static void | configure_chromium_family (const Settings &s, bool clear) |
| static bool | nss_contains_ca (const std::string &database) |
| static void | install_ca_firefox_profile (const fs::path &profile) |
| static void | install_ca_firefox_family () |
| static void | install_ca_nssdb () |
| static void | install_ca_all_browsers () |
| static void | apply (const Settings &s) |
| static void | restore () |
Variables | |
| static constexpr const char * | LAN_BYPASS_CIDR |
| static constexpr const char * | LAN_BYPASS_NOCIDR |
| static constexpr const char * | LAN_BYPASS_GVARIANT |
| static constexpr const char * | FF_MARKER = "// BastionGuard-proxy" |
| static constexpr const char * | BG_CA_CERT = "/etc/BastionGuard/certs/BastionGuard-ca.crt.pem" |
| static constexpr const char * | BG_CA_NICK = "BastionGuard-CA" |
|
static |
Definition at line 375 of file proxy_config.hpp.
References _, apply(), configure_chromium_family(), and configure_firefox_family().
Referenced by apply(), and ProxyConfig::apply().
|
static |
Definition at line 275 of file proxy_config.hpp.
References chromium_clear_policy().
Referenced by chromium_clear_policy(), and configure_chromium_family().
|
static |
Definition at line 262 of file proxy_config.hpp.
References _, chromium_set_policy(), make_chromium_policy(), and write_file().
Referenced by chromium_set_policy(), and configure_chromium_family().
|
static |
Definition at line 280 of file proxy_config.hpp.
References chromium_clear_policy(), chromium_set_policy(), configure_chromium_family(), and home_dir().
Referenced by apply(), configure_chromium_family(), and restore().
|
static |
Definition at line 232 of file proxy_config.hpp.
References configure_firefox_family(), firefox_active_profile(), firefox_clear_profile(), firefox_set_profile(), and home_dir().
Referenced by apply(), configure_firefox_family(), and restore().
|
static |
Definition at line 128 of file proxy_config.hpp.
References firefox_active_profile().
Referenced by configure_firefox_family(), firefox_active_profile(), and install_ca_firefox_family().
|
static |
Definition at line 227 of file proxy_config.hpp.
References FF_MARKER, firefox_clear_profile(), and remove_lines_containing().
Referenced by configure_firefox_family(), and firefox_clear_profile().
|
static |
Definition at line 201 of file proxy_config.hpp.
References _, FF_MARKER, firefox_set_profile(), BrowserProxy::Settings::host, LAN_BYPASS_CIDR, BrowserProxy::Settings::port, and remove_lines_containing().
Referenced by configure_firefox_family(), and firefox_set_profile().
|
static |
Definition at line 104 of file proxy_config.hpp.
References home_dir().
Referenced by configure_chromium_family(), configure_firefox_family(), home_dir(), install_ca_firefox_family(), and install_ca_nssdb().
|
static |
Definition at line 364 of file proxy_config.hpp.
References _, BG_CA_CERT, install_ca_all_browsers(), install_ca_firefox_family(), and install_ca_nssdb().
Referenced by ProxyConfig::apply(), and install_ca_all_browsers().
|
static |
Definition at line 323 of file proxy_config.hpp.
References firefox_active_profile(), home_dir(), install_ca_firefox_family(), and install_ca_firefox_profile().
Referenced by install_ca_all_browsers(), and install_ca_firefox_family().
|
static |
Definition at line 316 of file proxy_config.hpp.
References BG_CA_CERT, BG_CA_NICK, install_ca_firefox_profile(), nss_contains_ca(), and bg_process::run().
Referenced by install_ca_firefox_family(), and install_ca_firefox_profile().
|
static |
Definition at line 344 of file proxy_config.hpp.
References BG_CA_CERT, BG_CA_NICK, home_dir(), install_ca_nssdb(), nss_contains_ca(), and bg_process::run().
Referenced by install_ca_all_browsers(), and install_ca_nssdb().
|
static |
Definition at line 254 of file proxy_config.hpp.
References BrowserProxy::Settings::host, LAN_BYPASS_CIDR, make_chromium_policy(), and BrowserProxy::Settings::port.
Referenced by chromium_set_policy(), and make_chromium_policy().
|
static |
Definition at line 311 of file proxy_config.hpp.
References BG_CA_NICK, nss_contains_ca(), bg_process::Result::ok(), and bg_process::run().
Referenced by install_ca_firefox_profile(), install_ca_nssdb(), and nss_contains_ca().
|
static |
Definition at line 114 of file proxy_config.hpp.
References remove_lines_containing(), and write_file().
Referenced by firefox_clear_profile(), firefox_set_profile(), and remove_lines_containing().
|
static |
Definition at line 381 of file proxy_config.hpp.
References _, configure_chromium_family(), configure_firefox_family(), and restore().
Referenced by restore(), and ProxyConfig::restore().
|
static |
Definition at line 109 of file proxy_config.hpp.
References write_file().
Referenced by chromium_set_policy(), remove_lines_containing(), and write_file().
|
staticconstexpr |
Definition at line 307 of file proxy_config.hpp.
Referenced by install_ca_all_browsers(), install_ca_firefox_profile(), and install_ca_nssdb().
|
staticconstexpr |
Definition at line 308 of file proxy_config.hpp.
Referenced by install_ca_firefox_profile(), install_ca_nssdb(), and nss_contains_ca().
|
staticconstexpr |
Definition at line 126 of file proxy_config.hpp.
Referenced by firefox_clear_profile(), and firefox_set_profile().
|
staticconstexpr |
Definition at line 64 of file proxy_config.hpp.
Referenced by firefox_set_profile(), ProxyConfig::kde_set(), and make_chromium_policy().
|
staticconstexpr |
Definition at line 93 of file proxy_config.hpp.
Referenced by ProxyConfig::gnome_set(), ProxyConfig::mate_set(), and ProxyConfig::xfce_set().
|
staticconstexpr |
Definition at line 79 of file proxy_config.hpp.
Referenced by ProxyConfig::env_set(), and ProxyConfig::lxqt_set().