mgr: support optional arguments for module and profile caps

This allows an optional, arbitrary key/value constraint clauses to
be appended to "profile XYZ" and "allow module XYZ" caps. A module
can then provide additional validatation against these meta-arguments.

Example:
profile rbd pool=rbd
allow module rbd_support with pool=rbd

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2019-10-11 12:44:01 -04:00
parent 3463613bd4
commit cb534e0049
4 changed files with 88 additions and 59 deletions