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

Go to the source code of this file.

Classes

struct  bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::ResolvedRule
struct  bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::PreparedProtected

Namespaces

namespace  bastionguard
namespace  bastionguard::rootguard
namespace  bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}

Functions

std::runtime_error bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::systemError (const char *operation)
std::uint64_t bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::monotonicNanoseconds ()
std::string bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::fileKeyString (const rg_file_key &key)
bool bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::pathStartsWith (const std::filesystem::path &path, const std::filesystem::path &prefix) noexcept
bool bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::isIgnoredPath (const Policy &policy, const std::filesystem::path &candidate) noexcept
bool bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::isUserHomePath (const std::filesystem::path &candidate) noexcept
bool bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::identityMatches (const std::filesystem::path &candidate, const rg_file_key &expected) noexcept
std::string bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::readLink (const std::filesystem::path &path) noexcept
void bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::copyString (char *destination, const std::size_t destinationSize, const std::string &source) noexcept

Variables

constexpr std::size_t bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::kMaximumProtectedInodes = 8'000