Skip to content

Commit

Permalink
Update admin enclave for rqt
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl committed Mar 2, 2021
1 parent d46b623 commit eae58c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ new-window -n sros
send-keys 'tree keystore -d' Enter

split-window -h
send-keys 'ros2 security generate_artifacts -k keystore -p policies/tb3_gazebo_policy.xml -n /_ros2cli'
send-keys 'ros2 security generate_artifacts -k keystore -p policies/tb3_gazebo_policy.xml -e /admin'

split-window -v
send-keys 'env | grep ROS' Enter

# create rqt window
new-window -n rqt
send-keys 'ROS_SECURITY_NODE_DIRECTORY=$TB3_DEMO_DIR/keystore/_ros2cli rqt'
send-keys 'ROS_SECURITY_ENCLAVE_OVERRIDE=/admin rqt'

# reselect turtlebot window (the one with teleop)
select-window -t turtlebot
12 changes: 12 additions & 0 deletions policies/tb3_gazebo_policy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -443,5 +443,17 @@
</profile> -->
</profiles>
</enclave>
<enclave path="/admin">
<profiles>
<profile node="admin" ns="/">
<services reply="ALLOW" request="ALLOW">
<service>*</service>
</services>
<topics publish="ALLOW" subscribe="ALLOW">
<topic>*</topic>
</topics>
</profile>
</profiles>
</enclave>
</enclaves>
</policy>

0 comments on commit eae58c0

Please sign in to comment.