Closed victomteng1997 closed 3 years ago
I think I know the issue: https://github.com/ros2/sros2/blob/02c141d11b3e4bc79f54d3433c648aa97b7f685a/sros2/sros2/api/_artifact_generation.py
This error is reported when the enclave parameter is not in the policy subjects described in the policy file (enclaves_element
) element. To resolve the problem, the talker_listener.policy.xml should be modified. Anyway, the error message is a bit misleading.
Bug report
Required Info:
Bug description
Was trying to do access control through SROS2. Followed the tutorial on linux and it works well. The directory structure is shown below.
I then tried to create a new enclave with name
test_talker
. It works well.I can create policy on the old talker enclave:
But I cannot create policy on this new enclave, as shown below. May anyone help to check on that?
Seems like this problem happens as long as the enclave name is not "talker" or "listener". Is it because of some hard-coded section in the policy file?