-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loop through polcies when generating permissions
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
- Loading branch information
Showing
6 changed files
with
358 additions
and
21 deletions.
There are no files selected for viewing
106 changes: 106 additions & 0 deletions
106
sros2/test/policies/permissions/add_two_ints/permissions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.omg.org/spec/DDS-SECURITY/20170901/omg_shared_ca_permissions.xsd"> | ||
<permissions> | ||
<grant name="/add_two_ints_server"> | ||
<subject_name>CN=/add_two_ints_server</subject_name> | ||
<validity> | ||
<not_before>2013-10-26T00:00:00</not_before> | ||
<not_after>2023-10-26T22:45:30</not_after> | ||
</validity> | ||
<allow_rule> | ||
<domains> | ||
<id>0</id> | ||
</domains> | ||
<publish> | ||
<topics> | ||
<topic>rq/add_two_ints_server/describe_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/get_parameter_typesRequest</topic> | ||
<topic>rq/add_two_ints_server/get_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/list_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/set_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/add_two_intsReply</topic> | ||
<topic>rr/add_two_ints_server/describe_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/get_parameter_typesReply</topic> | ||
<topic>rr/add_two_ints_server/get_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/list_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/set_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/set_parameters_atomicallyReply</topic> | ||
<topic>rt/parameter_events</topic> | ||
<topic>rt/rosout</topic> | ||
</topics> | ||
</publish> | ||
<subscribe> | ||
<topics> | ||
<topic>rq/add_two_intsRequest</topic> | ||
<topic>rq/add_two_ints_server/describe_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/get_parameter_typesRequest</topic> | ||
<topic>rq/add_two_ints_server/get_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/list_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/set_parametersRequest</topic> | ||
<topic>rq/add_two_ints_server/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/add_two_ints_server/describe_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/get_parameter_typesReply</topic> | ||
<topic>rr/add_two_ints_server/get_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/list_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/set_parametersReply</topic> | ||
<topic>rr/add_two_ints_server/set_parameters_atomicallyReply</topic> | ||
<topic>rt/clock</topic> | ||
<topic>rt/parameter_events</topic> | ||
</topics> | ||
</subscribe> | ||
</allow_rule> | ||
<default>DENY</default> | ||
</grant> | ||
<grant name="/add_two_ints_client"> | ||
<subject_name>CN=/add_two_ints_client</subject_name> | ||
<validity> | ||
<not_before>2013-10-26T00:00:00</not_before> | ||
<not_after>2023-10-26T22:45:30</not_after> | ||
</validity> | ||
<allow_rule> | ||
<domains> | ||
<id>0</id> | ||
</domains> | ||
<publish> | ||
<topics> | ||
<topic>rq/add_two_intsRequest</topic> | ||
<topic>rq/add_two_ints_client/describe_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/get_parameter_typesRequest</topic> | ||
<topic>rq/add_two_ints_client/get_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/list_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/set_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/add_two_ints_client/describe_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/get_parameter_typesReply</topic> | ||
<topic>rr/add_two_ints_client/get_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/list_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/set_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/set_parameters_atomicallyReply</topic> | ||
<topic>rt/parameter_events</topic> | ||
<topic>rt/rosout</topic> | ||
</topics> | ||
</publish> | ||
<subscribe> | ||
<topics> | ||
<topic>rq/add_two_ints_client/describe_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/get_parameter_typesRequest</topic> | ||
<topic>rq/add_two_ints_client/get_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/list_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/set_parametersRequest</topic> | ||
<topic>rq/add_two_ints_client/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/add_two_intsReply</topic> | ||
<topic>rr/add_two_ints_client/describe_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/get_parameter_typesReply</topic> | ||
<topic>rr/add_two_ints_client/get_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/list_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/set_parametersReply</topic> | ||
<topic>rr/add_two_ints_client/set_parameters_atomicallyReply</topic> | ||
<topic>rt/clock</topic> | ||
<topic>rt/parameter_events</topic> | ||
</topics> | ||
</subscribe> | ||
</allow_rule> | ||
<default>DENY</default> | ||
</grant> | ||
</permissions> | ||
</dds> |
118 changes: 118 additions & 0 deletions
118
sros2/test/policies/permissions/minimal_action/permissions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.omg.org/spec/DDS-SECURITY/20170901/omg_shared_ca_permissions.xsd"> | ||
<permissions> | ||
<grant name="/minimal_action_server"> | ||
<subject_name>CN=/minimal_action_server</subject_name> | ||
<validity> | ||
<not_before>2013-10-26T00:00:00</not_before> | ||
<not_after>2023-10-26T22:45:30</not_after> | ||
</validity> | ||
<allow_rule> | ||
<domains> | ||
<id>0</id> | ||
</domains> | ||
<publish> | ||
<topics> | ||
<topic>rq/minimal_action_server/describe_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/get_parameter_typesRequest</topic> | ||
<topic>rq/minimal_action_server/get_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/list_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/set_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/fibonacci/_action/cancel_goalReply</topic> | ||
<topic>rr/fibonacci/_action/get_resultReply</topic> | ||
<topic>rr/fibonacci/_action/send_goalReply</topic> | ||
<topic>rt/fibonacci/_action/feedback</topic> | ||
<topic>rt/fibonacci/_action/status</topic> | ||
<topic>rr/minimal_action_server/describe_parametersReply</topic> | ||
<topic>rr/minimal_action_server/get_parameter_typesReply</topic> | ||
<topic>rr/minimal_action_server/get_parametersReply</topic> | ||
<topic>rr/minimal_action_server/list_parametersReply</topic> | ||
<topic>rr/minimal_action_server/set_parametersReply</topic> | ||
<topic>rr/minimal_action_server/set_parameters_atomicallyReply</topic> | ||
<topic>rt/parameter_events</topic> | ||
<topic>rt/rosout</topic> | ||
</topics> | ||
</publish> | ||
<subscribe> | ||
<topics> | ||
<topic>rq/fibonacci/_action/cancel_goalRequest</topic> | ||
<topic>rq/fibonacci/_action/get_resultRequest</topic> | ||
<topic>rq/fibonacci/_action/send_goalRequest</topic> | ||
<topic>rq/minimal_action_server/describe_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/get_parameter_typesRequest</topic> | ||
<topic>rq/minimal_action_server/get_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/list_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/set_parametersRequest</topic> | ||
<topic>rq/minimal_action_server/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/minimal_action_server/describe_parametersReply</topic> | ||
<topic>rr/minimal_action_server/get_parameter_typesReply</topic> | ||
<topic>rr/minimal_action_server/get_parametersReply</topic> | ||
<topic>rr/minimal_action_server/list_parametersReply</topic> | ||
<topic>rr/minimal_action_server/set_parametersReply</topic> | ||
<topic>rr/minimal_action_server/set_parameters_atomicallyReply</topic> | ||
<topic>rt/clock</topic> | ||
<topic>rt/parameter_events</topic> | ||
</topics> | ||
</subscribe> | ||
</allow_rule> | ||
<default>DENY</default> | ||
</grant> | ||
<grant name="/minimal_action_client"> | ||
<subject_name>CN=/minimal_action_client</subject_name> | ||
<validity> | ||
<not_before>2013-10-26T00:00:00</not_before> | ||
<not_after>2023-10-26T22:45:30</not_after> | ||
</validity> | ||
<allow_rule> | ||
<domains> | ||
<id>0</id> | ||
</domains> | ||
<publish> | ||
<topics> | ||
<topic>rq/fibonacci/_action/cancel_goalRequest</topic> | ||
<topic>rq/fibonacci/_action/get_resultRequest</topic> | ||
<topic>rq/fibonacci/_action/send_goalRequest</topic> | ||
<topic>rq/minimal_action_client/describe_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/get_parameter_typesRequest</topic> | ||
<topic>rq/minimal_action_client/get_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/list_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/set_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/minimal_action_client/describe_parametersReply</topic> | ||
<topic>rr/minimal_action_client/get_parameter_typesReply</topic> | ||
<topic>rr/minimal_action_client/get_parametersReply</topic> | ||
<topic>rr/minimal_action_client/list_parametersReply</topic> | ||
<topic>rr/minimal_action_client/set_parametersReply</topic> | ||
<topic>rr/minimal_action_client/set_parameters_atomicallyReply</topic> | ||
<topic>rt/parameter_events</topic> | ||
<topic>rt/rosout</topic> | ||
</topics> | ||
</publish> | ||
<subscribe> | ||
<topics> | ||
<topic>rq/minimal_action_client/describe_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/get_parameter_typesRequest</topic> | ||
<topic>rq/minimal_action_client/get_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/list_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/set_parametersRequest</topic> | ||
<topic>rq/minimal_action_client/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/fibonacci/_action/cancel_goalReply</topic> | ||
<topic>rr/fibonacci/_action/get_resultReply</topic> | ||
<topic>rr/fibonacci/_action/send_goalReply</topic> | ||
<topic>rt/fibonacci/_action/feedback</topic> | ||
<topic>rt/fibonacci/_action/status</topic> | ||
<topic>rr/minimal_action_client/describe_parametersReply</topic> | ||
<topic>rr/minimal_action_client/get_parameter_typesReply</topic> | ||
<topic>rr/minimal_action_client/get_parametersReply</topic> | ||
<topic>rr/minimal_action_client/list_parametersReply</topic> | ||
<topic>rr/minimal_action_client/set_parametersReply</topic> | ||
<topic>rr/minimal_action_client/set_parameters_atomicallyReply</topic> | ||
<topic>rt/clock</topic> | ||
<topic>rt/parameter_events</topic> | ||
</topics> | ||
</subscribe> | ||
</allow_rule> | ||
<default>DENY</default> | ||
</grant> | ||
</permissions> | ||
</dds> |
File renamed without changes.
104 changes: 104 additions & 0 deletions
104
sros2/test/policies/permissions/talker_listener/permissions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.omg.org/spec/DDS-SECURITY/20170901/omg_shared_ca_permissions.xsd"> | ||
<permissions> | ||
<grant name="/talker"> | ||
<subject_name>CN=/talker</subject_name> | ||
<validity> | ||
<not_before>2013-10-26T00:00:00</not_before> | ||
<not_after>2023-10-26T22:45:30</not_after> | ||
</validity> | ||
<allow_rule> | ||
<domains> | ||
<id>0</id> | ||
</domains> | ||
<publish> | ||
<topics> | ||
<topic>rq/talker/describe_parametersRequest</topic> | ||
<topic>rq/talker/get_parameter_typesRequest</topic> | ||
<topic>rq/talker/get_parametersRequest</topic> | ||
<topic>rq/talker/list_parametersRequest</topic> | ||
<topic>rq/talker/set_parametersRequest</topic> | ||
<topic>rq/talker/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/talker/describe_parametersReply</topic> | ||
<topic>rr/talker/get_parameter_typesReply</topic> | ||
<topic>rr/talker/get_parametersReply</topic> | ||
<topic>rr/talker/list_parametersReply</topic> | ||
<topic>rr/talker/set_parametersReply</topic> | ||
<topic>rr/talker/set_parameters_atomicallyReply</topic> | ||
<topic>rt/chatter</topic> | ||
<topic>rt/parameter_events</topic> | ||
<topic>rt/rosout</topic> | ||
</topics> | ||
</publish> | ||
<subscribe> | ||
<topics> | ||
<topic>rq/talker/describe_parametersRequest</topic> | ||
<topic>rq/talker/get_parameter_typesRequest</topic> | ||
<topic>rq/talker/get_parametersRequest</topic> | ||
<topic>rq/talker/list_parametersRequest</topic> | ||
<topic>rq/talker/set_parametersRequest</topic> | ||
<topic>rq/talker/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/talker/describe_parametersReply</topic> | ||
<topic>rr/talker/get_parameter_typesReply</topic> | ||
<topic>rr/talker/get_parametersReply</topic> | ||
<topic>rr/talker/list_parametersReply</topic> | ||
<topic>rr/talker/set_parametersReply</topic> | ||
<topic>rr/talker/set_parameters_atomicallyReply</topic> | ||
<topic>rt/clock</topic> | ||
<topic>rt/parameter_events</topic> | ||
</topics> | ||
</subscribe> | ||
</allow_rule> | ||
<default>DENY</default> | ||
</grant> | ||
<grant name="/listener"> | ||
<subject_name>CN=/listener</subject_name> | ||
<validity> | ||
<not_before>2013-10-26T00:00:00</not_before> | ||
<not_after>2023-10-26T22:45:30</not_after> | ||
</validity> | ||
<allow_rule> | ||
<domains> | ||
<id>0</id> | ||
</domains> | ||
<publish> | ||
<topics> | ||
<topic>rq/listener/describe_parametersRequest</topic> | ||
<topic>rq/listener/get_parameter_typesRequest</topic> | ||
<topic>rq/listener/get_parametersRequest</topic> | ||
<topic>rq/listener/list_parametersRequest</topic> | ||
<topic>rq/listener/set_parametersRequest</topic> | ||
<topic>rq/listener/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/listener/describe_parametersReply</topic> | ||
<topic>rr/listener/get_parameter_typesReply</topic> | ||
<topic>rr/listener/get_parametersReply</topic> | ||
<topic>rr/listener/list_parametersReply</topic> | ||
<topic>rr/listener/set_parametersReply</topic> | ||
<topic>rr/listener/set_parameters_atomicallyReply</topic> | ||
<topic>rt/parameter_events</topic> | ||
<topic>rt/rosout</topic> | ||
</topics> | ||
</publish> | ||
<subscribe> | ||
<topics> | ||
<topic>rq/listener/describe_parametersRequest</topic> | ||
<topic>rq/listener/get_parameter_typesRequest</topic> | ||
<topic>rq/listener/get_parametersRequest</topic> | ||
<topic>rq/listener/list_parametersRequest</topic> | ||
<topic>rq/listener/set_parametersRequest</topic> | ||
<topic>rq/listener/set_parameters_atomicallyRequest</topic> | ||
<topic>rr/listener/describe_parametersReply</topic> | ||
<topic>rr/listener/get_parameter_typesReply</topic> | ||
<topic>rr/listener/get_parametersReply</topic> | ||
<topic>rr/listener/list_parametersReply</topic> | ||
<topic>rr/listener/set_parametersReply</topic> | ||
<topic>rr/listener/set_parameters_atomicallyReply</topic> | ||
<topic>rt/chatter</topic> | ||
<topic>rt/clock</topic> | ||
<topic>rt/parameter_events</topic> | ||
</topics> | ||
</subscribe> | ||
</allow_rule> | ||
<default>DENY</default> | ||
</grant> | ||
</permissions> | ||
</dds> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.