#include <FileIdentity.hpp>
Static Public Member Functions | |
| static __u64 | kernelDeviceNumber (dev_t encodedDevice) |
| static FileIdentity | resolve (const std::filesystem::path &path, bool requireRegularFile, bool requireRootOwnedAndNotWritable) |
Definition at line 20 of file FileIdentity.hpp.
|
staticnodiscard |
Definition at line 13 of file FileIdentity.cpp.
Referenced by bastionguard::rootguard::RootGuardEngine::enrichActorExecutable(), bastionguard::rootguard::anonymous_namespace{RootGuardEngine.cpp}::identityMatches(), bastionguard::rootguard::RootGuardEngine::isTrustedApplicationEvent(), anonymous_namespace{ActionHelper.cpp}::logAction(), main(), anonymous_namespace{ActionHelper.cpp}::quarantineFile(), resolve(), anonymous_namespace{ActionHelper.cpp}::restoreFile(), and bastionguard::rootguard::RootGuardEngine::runIntegrityCheckIfDue().
|
staticnodiscard |
Definition at line 28 of file FileIdentity.cpp.
References bastionguard::rootguard::FileIdentity::canonicalPath, rg_file_key::device, bastionguard::rootguard::FileIdentity::directory, bastionguard::rootguard::FileIdentity::gid, rg_file_key::inode, kernelDeviceNumber(), bastionguard::rootguard::FileIdentity::key, bastionguard::rootguard::FileIdentity::mode, bastionguard::rootguard::FileIdentity::regularFile, S_IWGRP, S_IWOTH, and bastionguard::rootguard::FileIdentity::uid.
Referenced by bastionguard::rootguard::RootGuardEngine::applyPolicy().