Classes | |
| struct | CommandResult |
| struct | IgnoredPathRule |
Functions | |
| CommandResult | run_command (const std::vector< std::string > &arguments) |
| std::string | trim (std::string value) |
| bool | parse_bool (const std::string &value) |
| ServiceStatus | parse_status (const std::string &text) |
| bool | path_starts_with (const std::filesystem::path &path, const std::filesystem::path &prefix) |
| std::vector< IgnoredPathRule > | read_ignored_paths () |
| bool | is_ignored_event_path (const std::string &filename, const std::vector< IgnoredPathRule > &rules) |
| ApplicationRules | read_application_rules () |
| std::vector< Event > | read_recent_events (const std::size_t maximum) |
| std::string | octal_argument (const std::uint32_t value) |
| bool | command_success (const CommandResult &result, const std::string &successFallback, std::string &message) |
| bool BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::command_success | ( | const CommandResult & | result, |
| const std::string & | successFallback, | ||
| std::string & | message ) |
Definition at line 280 of file RootGuardClient.cpp.
References command_success(), BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::CommandResult::exit_code, BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::CommandResult::output, and trim().
Referenced by command_success().
| bool BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::is_ignored_event_path | ( | const std::string & | filename, |
| const std::vector< IgnoredPathRule > & | rules ) |
Definition at line 197 of file RootGuardClient.cpp.
References is_ignored_event_path(), and path_starts_with().
Referenced by is_ignored_event_path(), and read_recent_events().
| std::string BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::octal_argument | ( | const std::uint32_t | value | ) |
Definition at line 273 of file RootGuardClient.cpp.
References octal_argument().
Referenced by octal_argument().
| bool BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::parse_bool | ( | const std::string & | value | ) |
Definition at line 117 of file RootGuardClient.cpp.
References parse_bool().
Referenced by parse_bool(), and parse_status().
| ServiceStatus BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::parse_status | ( | const std::string & | text | ) |
Definition at line 122 of file RootGuardClient.cpp.
References BastionGuard::RootGuard::ServiceStatus::active, BastionGuard::RootGuard::ServiceStatus::autoBlockServices, BastionGuard::RootGuard::ServiceStatus::blockUserHome, BastionGuard::RootGuard::ServiceStatus::global_metadata_action, BastionGuard::RootGuard::ServiceStatus::immediateProtection, BastionGuard::RootGuard::ServiceStatus::init_system, BastionGuard::RootGuard::ServiceStatus::metadata_action, BastionGuard::RootGuard::ServiceStatus::mode, parse_bool(), parse_status(), BastionGuard::RootGuard::ServiceStatus::pid, BastionGuard::RootGuard::ServiceStatus::state, and trim().
Referenced by parse_status().
| bool BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::path_starts_with | ( | const std::filesystem::path & | path, |
| const std::filesystem::path & | prefix ) |
Definition at line 154 of file RootGuardClient.cpp.
References path_starts_with().
Referenced by is_ignored_event_path(), and path_starts_with().
| ApplicationRules BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::read_application_rules | ( | ) |
Definition at line 211 of file RootGuardClient.cpp.
References BASTIONGUARD_ROOTGUARD_POLICY_VIEW, BastionGuard::RootGuard::ApplicationRules::deniedExecutables, read_application_rules(), trim(), BastionGuard::RootGuard::ApplicationRules::trustedApplications, and BastionGuard::RootGuard::ApplicationRules::trustedExecutables.
Referenced by read_application_rules().
| std::vector< IgnoredPathRule > BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::read_ignored_paths | ( | ) |
Definition at line 170 of file RootGuardClient.cpp.
References BASTIONGUARD_ROOTGUARD_POLICY_VIEW, read_ignored_paths(), and trim().
Referenced by read_ignored_paths(), and read_recent_events().
| std::vector< Event > BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::read_recent_events | ( | const std::size_t | maximum | ) |
Definition at line 236 of file RootGuardClient.cpp.
References BASTIONGUARD_ROOTGUARD_EVENT_LOG, is_ignored_event_path(), BastionGuard::RootGuard::parse_event_json(), read_ignored_paths(), and read_recent_events().
Referenced by read_recent_events().
| CommandResult BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::run_command | ( | const std::vector< std::string > & | arguments | ) |
Definition at line 51 of file RootGuardClient.cpp.
References BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::CommandResult::exit_code, BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::CommandResult::output, and run_command().
Referenced by run_command().
| std::string BastionGuard::RootGuard::anonymous_namespace{RootGuardClient.cpp}::trim | ( | std::string | value | ) |
Definition at line 108 of file RootGuardClient.cpp.
References trim().
Referenced by command_success(), parse_status(), read_application_rules(), read_ignored_paths(), and trim().