Lines Matching full:policy
5 Tests for the nlctrl genetlink family (family info and policy dumps).
33 The policy map in the Netlink replies looks like this:
35 [{'family-id': 16, 'op-policy': {'do': 0, 'dump': 0, 'op-id': 3}},
36 {'family-id': 16, 'op-policy': {'dump': 1, 'op-id': 4}}, ...]
42 The policy itself is discarded here, only return which command has policy.
46 if 'op-policy' not in msg:
48 modes = dict(msg['op-policy'])
61 # All ops in nlctrl and netdev have a policy
114 # dev-get: do has a real policy with ifindex, dump has no policy
115 # (only the reject-all policy with maxattr=0)
117 ksft_in('ifindex', pol, comment="dev-get do policy should have ifindex")
133 # strset-get (has both do and dump, full ops share policy)
135 ksft_ge(len(pol_do), 1, comment="strset-get should have a do policy")
138 ksft_ge(len(pol_dump), 1, comment="strset-get should have a dump policy")
140 # Same policy means same attribute names
145 ksft_ge(len(pol_do), 1, comment="linkinfo-set should have a do policy")
149 comment="linkinfo-set should not have a dump policy")
153 """Check the op-to-policy map consistency. Each op with 'haspol' flag
154 has to have a policy. The policy back-references must name only
164 comment=f"{name} policy map does not match the op list")
184 comment=f"{name} cmd {cmd} policy differs from the dump")
188 """Query policy for specific ops, check attr names are resolved."""
191 # dev-get do policy should have named attributes from the spec