aboutsummaryrefslogtreecommitdiffstats
path: root/include/PermissionsManager.h
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-05-10 02:27:08 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-05-10 02:27:08 -0300
commit7ffd4d99bbb8e358c6694c27c7ff859967872ece (patch)
tree8af04f4032651de7e49d1cac01e6f20b2315b6cb /include/PermissionsManager.h
parent5ee324f03f8a7e6f09dad7b8580a2d32172694f8 (diff)
downloadRNT-7ffd4d99bbb8e358c6694c27c7ff859967872ece.tar.gz
RNT-7ffd4d99bbb8e358c6694c27c7ff859967872ece.zip
comparison to nt ob
Diffstat (limited to '')
-rw-r--r--include/PermissionsManager.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/PermissionsManager.h b/include/PermissionsManager.h
index 65c00e5..2db1784 100644
--- a/include/PermissionsManager.h
+++ b/include/PermissionsManager.h
@@ -20,6 +20,22 @@ namespace nt
* Permission checks are intentionally separated from lookup. The object
* manager can retrieve a candidate object, while this manager decides
* whether the caller is allowed to use it.
+ *
+ * Permissions are strictly capability-based and must be explicitly granted.
+ * There is no implicit flow of access rights from a parent namespace entry to
+ * its children (no SD inheritance). A caller who holds READ on a multigroup
+ * does not thereby hold READ on its constituent relations — that is a separate,
+ * explicit capability.
+ *
+ * @todo Define a security_descriptor structure. Store instances in a shared,
+ * content-addressed cache (keyed by descriptor content, not by namespace
+ * ancestry) so that identical ACLs are not duplicated across relations.
+ * See docs/reactos-ob-comparison.md §5 and §7.
+ *
+ * @todo Cache the result of Access() in HandlerManager::handle::granted_access
+ * at open time. Per-operation checks should then read from the handle
+ * rather than re-evaluating the descriptor on every call.
+ * See docs/reactos-ob-comparison.md §4.
*/
class NT_API PermissionsManager
{