]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: python modules can now perform authorization tests
authorJason Dillaman <dillaman@redhat.com>
Mon, 14 Oct 2019 14:39:54 +0000 (10:39 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 29 Oct 2019 12:35:03 +0000 (08:35 -0400)
commit282c31c383856b45caadcefb876a71e39fe4b219
tree5b76b6468b44ed5be181ed7772609ed8c1bc59e1
parent9193d8762347af65bebdaea673175113f7ccd01a
mgr: python modules can now perform authorization tests

In cases where the python service or individual python modules are
enabled via caps, the module might want to perform finer grained
tests to ensure specific commands are allowed. An example of this is
the 'rbd_support' module limiting access by pools and namespaces.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/mgr/ActivePyModule.cc
src/mgr/ActivePyModule.h
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/MgrSession.h
src/mgr/PyModuleRegistry.cc
src/mgr/PyModuleRegistry.h
src/pybind/mgr/mgr_module.py