gh-323: roles
Implement granted privilege cache in struct user. Reload user privileges from system spaces and rebuild the cache whenever a grant or revoke occurs.. Implement revoking privileges from a role. Basic tests pass. Do not rebuild the privilege cache of objects for which it can't have changed with a grant or revoke. Optimize rebuild_effective_grants(). Make role.test idempotent. Make grant and revoke robust to malformed arguments. Fix bugs in schema.lua, related to incorrect arguments for grant/revoke.
Showing
- src/box/alter.cc 20 additions, 38 deletionssrc/box/alter.cc
- src/box/key_def.h 4 additions, 0 deletionssrc/box/key_def.h
- src/box/lua/schema.lua 13 additions, 6 deletionssrc/box/lua/schema.lua
- src/box/user.cc 318 additions, 70 deletionssrc/box/user.cc
- src/box/user.h 25 additions, 2 deletionssrc/box/user.h
- src/box/vclock.h 1 addition, 0 deletionssrc/box/vclock.h
- src/errcode.h 1 addition, 0 deletionssrc/errcode.h
- test/box/misc.result 1 addition, 0 deletionstest/box/misc.result
- test/box/role.result 9 additions, 2 deletionstest/box/role.result
- test/box/role.test.lua 4 additions, 0 deletionstest/box/role.test.lua
Loading
Please register or sign in to comment