diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-05-08 21:20:01 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-05-08 21:20:01 -0300 |
| commit | dbad4b699e35442920baa60c13f76e95904fe317 (patch) | |
| tree | 70e35b6879349a750ea5be0b02790bb8d32d00b1 /src/PermissionsManager.cpp | |
| parent | 602af97c269bdc211cc7aeb34e436152053395cc (diff) | |
| download | RNT-dbad4b699e35442920baa60c13f76e95904fe317.tar.gz RNT-dbad4b699e35442920baa60c13f76e95904fe317.zip | |
restructure project and add readme
Diffstat (limited to 'src/PermissionsManager.cpp')
| -rw-r--r-- | src/PermissionsManager.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/PermissionsManager.cpp b/src/PermissionsManager.cpp new file mode 100644 index 0000000..228dd2d --- /dev/null +++ b/src/PermissionsManager.cpp @@ -0,0 +1,19 @@ +#include "PermissionsManager.h" + +namespace nt +{ + std::set<AUTH_CLAIM> PermissionsManager::Firewall(AUTH_METHOD method) + { + return {}; + } + + const bool PermissionsManager::Access(const ObjectManager::registry* object, const void* connection_context) + { + // Checks the security descriptor on the head of the object we find in the ObjectManager::registry + // Then additionally check other metadata yet to be defined in the connection_context, + // like user group, policy, etc. + // Yet to decide if this should be summoned at every attempt to get ahold of an object, + // that might produce significant overhead. How can we solve this? + return object != nullptr && connection_context != nullptr; + } +} |
