neutron/neutron/conf/policies
Slawek Kaplonski 47890e9b85 List SG rules which belongs to tenant's SG
In case when user's security group contains rules created e.g.
by admin, and such rules has got admin's tenant as tenant_id,
owner of security group should be able to see those rules.
Some time ago this was addressed for request:

GET /v2.0/security-groups/<sec_group_id>

But it is also required to behave in same way for

GET /v2.0/security-group-rules

So this patch fixes this behaviour for listing of security
group rules.
To achieve that this patch also adds new policy rule:
ADMIN_OWNER_OR_SG_OWNER which is similar to already existing
ADMIN_OWNER_OR_NETWORK_OWNER used e.g. for listing or creating
ports.

Change-Id: I09114712582d2d38d14cf1683b87a8ce3a8e8c3c
Closes-Bug: #1824248
(cherry picked from commit b898d2e3c0)
2020-01-16 08:57:01 +00:00
..
__init__.py Support Network Segment Range CRUD as extensions 2019-03-07 08:20:30 +00:00
address_scope.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
agent.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
auto_allocated_topology.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
availability_zone.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
base.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
flavor.py Add policy config for get_flavor_service_profile operation 2019-10-12 08:20:58 +00:00
floatingip.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
floatingip_pools.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
floatingip_port_forwarding.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
logging.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
metering.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
network.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
network_ip_availability.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
network_segment_range.py Support Network Segment Range CRUD as extensions 2019-03-07 08:20:30 +00:00
port.py Fix creating policy rules from subattributes. 2019-05-17 14:13:56 +00:00
qos.py Define qos-rules-alias extension 2019-03-21 15:06:10 +00:00
rbac.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
router.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
security_group.py List SG rules which belongs to tenant's SG 2020-01-16 08:57:01 +00:00
segment.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
service_type.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
subnet.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00
subnetpool.py Enable adoption of subnets into a subnet pool 2019-02-26 11:13:09 -06:00
trunk.py doc: Use DocumentedRuleDefault 2019-02-12 19:46:52 +09:00