Implement OSD-side authorization for operations

This commit is contained in:
Vitaliy Filippov
2026-07-05 14:58:24 +03:00
parent a243ff6459
commit c998325448
25 changed files with 313 additions and 100 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
bool cli_tool_t::check_image_perm(const inode_config_t & cfg, bool write)
{
return !user ||
user->type == "admin" ||
user->type == user_type_t::ADMIN ||
user->name == cfg.owner ||
cfg.owner_group != "" && user->groups.find(cfg.owner_group) != user->groups.end() ||
!write && cfg.reader_group != "" && user->groups.find(cfg.reader_group) != user->groups.end();