Classes | |
| struct | ResolvedRule |
| struct | PreparedProtected |
Functions | |
| std::runtime_error | systemError (const char *operation) |
| std::uint64_t | monotonicNanoseconds () |
| std::string | fileKeyString (const rg_file_key &key) |
| bool | pathStartsWith (const std::filesystem::path &path, const std::filesystem::path &prefix) noexcept |
| bool | isIgnoredPath (const Policy &policy, const std::filesystem::path &candidate) noexcept |
| bool | isUserHomePath (const std::filesystem::path &candidate) noexcept |
| bool | identityMatches (const std::filesystem::path &candidate, const rg_file_key &expected) noexcept |
| std::string | readLink (const std::filesystem::path &path) noexcept |
| void | copyString (char *destination, const std::size_t destinationSize, const std::string &source) noexcept |
Variables | |
| constexpr std::size_t | kMaximumProtectedInodes = 8'000 |
|
noexcept |
Definition at line 128 of file RootGuardEngine.cpp.
References copyString().
Referenced by copyString().
|
nodiscard |
Definition at line 57 of file RootGuardEngine.cpp.
References rg_file_key::device, fileKeyString(), and rg_file_key::inode.
Referenced by fileKeyString().
|
noexcept |
Definition at line 108 of file RootGuardEngine.cpp.
References identityMatches(), and bastionguard::rootguard::FileIdentityResolver::kernelDeviceNumber().
Referenced by identityMatches().
|
noexcept |
Definition at line 79 of file RootGuardEngine.cpp.
References isIgnoredPath(), and pathStartsWith().
Referenced by isIgnoredPath().
|
noexcept |
Definition at line 96 of file RootGuardEngine.cpp.
References isUserHomePath(), and pathStartsWith().
Referenced by isUserHomePath().
|
nodiscard |
Definition at line 48 of file RootGuardEngine.cpp.
References monotonicNanoseconds(), and systemError().
Referenced by monotonicNanoseconds().
|
noexcept |
Definition at line 62 of file RootGuardEngine.cpp.
References pathStartsWith().
Referenced by isIgnoredPath(), isUserHomePath(), and pathStartsWith().
|
noexcept |
Definition at line 118 of file RootGuardEngine.cpp.
References readLink().
Referenced by readLink().
|
nodiscard |
Definition at line 43 of file RootGuardEngine.cpp.
References systemError().
Referenced by monotonicNanoseconds(), and systemError().
|
constexpr |
Definition at line 41 of file RootGuardEngine.cpp.