3 # QAPI authz definitions
8 # The authorization policy result
11 # @allow: allow access
15 { 'enum': 'QAuthZListPolicy',
16 'prefix': 'QAUTHZ_LIST_POLICY',
17 'data': ['deny', 'allow']}
22 # The authorization policy match format
24 # @exact: an exact string match
25 # @glob: string with ? and * shell wildcard support
29 { 'enum': 'QAuthZListFormat',
30 'prefix': 'QAUTHZ_LIST_FORMAT',
31 'data': ['exact', 'glob']}
36 # A single authorization rule.
38 # @match: a string or glob to match against a user identity
39 # @policy: the result to return if @match evaluates to true
40 # @format: the format of the @match rule (default 'exact')
44 { 'struct': 'QAuthZListRule',
45 'data': {'match': 'str',
46 'policy': 'QAuthZListPolicy',
47 '*format': 'QAuthZListFormat'}}
50 # @QAuthZListRuleListHack:
52 # Not exposed via QMP; hack to generate QAuthZListRuleList
53 # for use internally by the code.
57 { 'struct': 'QAuthZListRuleListHack',
58 'data': { 'unused': ['QAuthZListRule'] } }