11 # The authorization policy result
14 # @allow: allow access
18 { 'enum': 'QAuthZListPolicy',
19 'prefix': 'QAUTHZ_LIST_POLICY',
20 'data': ['deny', 'allow']}
25 # The authorization policy match format
27 # @exact: an exact string match
28 # @glob: string with ? and * shell wildcard support
32 { 'enum': 'QAuthZListFormat',
33 'prefix': 'QAUTHZ_LIST_FORMAT',
34 'data': ['exact', 'glob']}
39 # A single authorization rule.
41 # @match: a string or glob to match against a user identity
42 # @policy: the result to return if @match evaluates to true
43 # @format: the format of the @match rule (default 'exact')
47 { 'struct': 'QAuthZListRule',
48 'data': {'match': 'str',
49 'policy': 'QAuthZListPolicy',
50 '*format': 'QAuthZListFormat'}}
53 # @QAuthZListRuleListHack:
55 # Not exposed via QMP; hack to generate QAuthZListRuleList
56 # for use internally by the code.
60 { 'struct': 'QAuthZListRuleListHack',
61 'data': { 'unused': ['QAuthZListRule'] } }