Functions | |
| static fs::path | ca_src_path () |
| static fs::path | stamp_path () |
| static std::string | ca_fingerprint (const fs::path &ca_path) |
| static bool | stamp_is_valid () |
| static void | write_stamp () |
| static bool | run (const std::vector< std::string > &args) |
| static std::string | current_home () |
| static std::vector< std::string > | glob_expand (const std::string &pat) |
| static bool | is_system_trusted () |
| static void | nss_add (const std::string &nssdb) |
| static void | install_nss_user (const std::string &home) |
| static bool | install_system_via_pkexec () |
| static bool | ensure_trusted () |
Variables | |
| static constexpr const char * | CA_NAME = "BastionGuard-CA" |
| static constexpr const char * | HELPER |
|
inlinestatic |
Definition at line 59 of file ca_installer.hpp.
References ca_fingerprint(), bg_process::Result::output, and bg_process::run().
Referenced by ca_fingerprint(), stamp_is_valid(), and write_stamp().
|
inlinestatic |
Definition at line 47 of file ca_installer.hpp.
References ca_src_path().
Referenced by ca_src_path(), ensure_trusted(), install_nss_user(), install_system_via_pkexec(), is_system_trusted(), nss_add(), stamp_is_valid(), and write_stamp().
|
inlinestatic |
Definition at line 92 of file ca_installer.hpp.
References current_home().
Referenced by current_home(), and ensure_trusted().
|
inlinestatic |
Definition at line 179 of file ca_installer.hpp.
References _, ca_src_path(), current_home(), ensure_trusted(), HELPER, install_nss_user(), install_system_via_pkexec(), BastionGuard::Platform::is_fedora_rhel_family(), is_system_trusted(), run(), stamp_is_valid(), and write_stamp().
Referenced by ensure_trusted().
|
inlinestatic |
Definition at line 99 of file ca_installer.hpp.
References glob_expand().
Referenced by glob_expand(), and install_nss_user().
|
inlinestatic |
Definition at line 137 of file ca_installer.hpp.
References _, ca_src_path(), glob_expand(), install_nss_user(), and nss_add().
Referenced by ensure_trusted(), and install_nss_user().
|
inlinestatic |
Definition at line 157 of file ca_installer.hpp.
References _, ca_src_path(), HELPER, install_system_via_pkexec(), BastionGuard::Platform::is_fedora_rhel_family(), run(), and write_stamp().
Referenced by ensure_trusted(), and install_system_via_pkexec().
|
inlinestatic |
Definition at line 109 of file ca_installer.hpp.
References ca_src_path(), is_system_trusted(), and run().
Referenced by ensure_trusted(), and is_system_trusted().
|
inlinestatic |
Definition at line 128 of file ca_installer.hpp.
References CA_NAME, ca_src_path(), nss_add(), and run().
Referenced by install_nss_user(), and nss_add().
|
inlinestatic |
Definition at line 88 of file ca_installer.hpp.
References bg_process::Result::ok(), bg_process::run(), and run().
Referenced by ensure_trusted(), install_system_via_pkexec(), is_system_trusted(), nss_add(), and run().
|
inlinestatic |
Definition at line 71 of file ca_installer.hpp.
References ca_fingerprint(), ca_src_path(), stamp_is_valid(), and stamp_path().
Referenced by ensure_trusted(), and stamp_is_valid().
|
inlinestatic |
Definition at line 53 of file ca_installer.hpp.
References stamp_path().
Referenced by stamp_is_valid(), stamp_path(), and write_stamp().
|
inlinestatic |
Definition at line 80 of file ca_installer.hpp.
References ca_fingerprint(), ca_src_path(), stamp_path(), and write_stamp().
Referenced by ensure_trusted(), install_system_via_pkexec(), and write_stamp().
|
staticconstexpr |
Definition at line 42 of file ca_installer.hpp.
Referenced by nss_add().
|
staticconstexpr |
Definition at line 44 of file ca_installer.hpp.
Referenced by ensure_trusted(), and install_system_via_pkexec().