// Exact-path namespace publication policy. A scoped capability can bind or unbind one name. #pragma once #include #include #include #include #include static inline bool RssrvScopeAllows(const char* scope, uint32_t operation, const char* path, uint32_t pathLength) { if (!scope) return true; // Unscoped administrator; separately issued by RSSRV. return path && (operation == NTL_RESOURCE_OP_BIND || operation == NTL_RESOURCE_OP_UNBIND) && strlen(scope) == (size_t)pathLength && memcmp(scope, path, pathLength) == 0; }