4 # QAPI authz definitions
9 # The authorization policy result
12 # @allow: allow access
16 { 'enum': 'QAuthZListPolicy',
17 'prefix': 'QAUTHZ_LIST_POLICY',
18 'data': ['deny', 'allow']}
23 # The authorization policy match format
25 # @exact: an exact string match
26 # @glob: string with ? and * shell wildcard support
30 { 'enum': 'QAuthZListFormat',
31 'prefix': 'QAUTHZ_LIST_FORMAT',
32 'data': ['exact', 'glob']}
37 # A single authorization rule.
39 # @match: a string or glob to match against a user identity
40 # @policy: the result to return if @match evaluates to true
41 # @format: the format of the @match rule (default 'exact')
45 { 'struct': 'QAuthZListRule',
46 'data': {'match': 'str',
47 'policy': 'QAuthZListPolicy',
48 '*format': 'QAuthZListFormat'}}
51 # @QAuthZListRuleListHack:
53 # Not exposed via QMP; hack to generate QAuthZListRuleList
54 # for use internally by the code.
58 { 'struct': 'QAuthZListRuleListHack',
59 'data': { 'unused': ['QAuthZListRule'] } }