aboutsummaryrefslogtreecommitdiffstats
path: root/include/PermissionsManager.h
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-06-05 21:40:44 -0300
committerGitHub <noreply@github.com>2026-06-05 21:40:44 -0300
commit5174fc25698cff33b03b5746bf1742e417988f7d (patch)
tree232a3acdd9b458de481dbd5cbde889505168c8e8 /include/PermissionsManager.h
parent85ed897de3676af866cc619dc700025820c02201 (diff)
downloadRNT-5174fc25698cff33b03b5746bf1742e417988f7d.tar.gz
RNT-5174fc25698cff33b03b5746bf1742e417988f7d.zip
Project C interface, reroute FOL plan enums & format
Diffstat (limited to 'include/PermissionsManager.h')
-rw-r--r--include/PermissionsManager.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/include/PermissionsManager.h b/include/PermissionsManager.h
index 3af75f6..af72154 100644
--- a/include/PermissionsManager.h
+++ b/include/PermissionsManager.h
@@ -11,8 +11,7 @@
* @brief Declares authentication and object-access checks.
*/
-namespace nt
-{
+namespace nt {
/**
* @class Capability-based permission manager
* @brief Evaluates connection claims and object permissions.
@@ -37,9 +36,8 @@ namespace nt
* rather than re-evaluating the descriptor on every call.
* See docs/reactos-ob-comparison.md ยง4.
*/
- class PermissionsManager
- {
- public:
+ class PermissionsManager {
+ public:
/**
* @brief Validates a connection during login.
* @param method Authentication method used by the connection.
@@ -62,7 +60,7 @@ namespace nt
* 3 other stored relations, while you can access the ephemeral relation,
* you cannot directly access the other 3 relations. You need explicit
* permission to create a handle on the others.
- *
+ *
* Here's an example tree:
* /system
* /multigroups
@@ -70,22 +68,21 @@ namespace nt
* /relations
* /user {type : stored}
* /order {type : stored}
- * /user_and_order {type : ephemeral; deps = [/system/multigroups/coffee_shop/relations/users, /system/multigroups/coffee_shop/relations/orders]}
- * /users
- * /peter
- * /permissions
+ * /user_and_order {type : ephemeral; deps =
+ * [/system/multigroups/coffee_shop/relations/users,
+ * /system/multigroups/coffee_shop/relations/orders]} /users /peter /permissions
* /multigroups/coffee_shop/relations/user_and_order {descriptor : [read]}
* /paul
* /permissions
* /multigroups/coffee_shop/relations/user {descriptor : [write, read]}
- *
+ *
* Meaning that `peter` has access to read the `user_and_order` ephemeral
* relation, but cannot open a handle on `user` and `order`.
- *
+ *
* @param object Object being accessed.
* @param connection_context Connection metadata for the caller.
* @return True when access is allowed.
*/
const bool Access(const ObjectManager::registry* object, const void* connection_context);
};
-}
+} // namespace nt