forked from ros2/rcutils
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* micro-ROS changes over dashing Feature/add security directory (#1) * Added security directory * Updated security directory Feature/avoid filesystem and allocation (#2) * Included RCUTILS_NO_FILESYSTEM and RCUTILS_AVOID_DYNAMIC_ALLOCATION * Added no filesystem options * Default allocators write access * Avoid dynamic allocation and no filesytem on error handling * Typo * New flags for filesystem and avoid dynamic * Error handling template * New allocator approach Add test_security_directory test from rcl. (#3) Merge pull request #4 from micro-ROS/feature/zephyr_fixes Feature/zephyr fixes CMake refactor (#5) Update approach (#6) * Update approach * Remove target_compile_definitions and refactor flags install * Added RCUTILS_NO_FILESYSTEM on new functions * Added RCUTILS_NO_FILESYSTEM on new functions Co-authored-by: Pablo Garrido <[email protected]> Updates 17092020 Fix atomics 64bits (#9) * micro-ROS changes over dashing Feature/add security directory (#1) * Added security directory * Updated security directory Feature/avoid filesystem and allocation (#2) * Included RCUTILS_NO_FILESYSTEM and RCUTILS_AVOID_DYNAMIC_ALLOCATION * Added no filesystem options * Default allocators write access * Avoid dynamic allocation and no filesytem on error handling * Typo * New flags for filesystem and avoid dynamic * Error handling template * New allocator approach Add test_security_directory test from rcl. (#3) Merge pull request #4 from micro-ROS/feature/zephyr_fixes Feature/zephyr fixes CMake refactor (#5) Update approach (#6) * Update approach * Remove target_compile_definitions and refactor flags install * Added RCUTILS_NO_FILESYSTEM on new functions * Added RCUTILS_NO_FILESYSTEM on new functions Co-authored-by: Pablo Garrido <[email protected]> * Initial changes * Add hashing and lock pool * Updates Co-authored-by: Jose Antonio Moral <[email protected]> Fix atomics 64bits (#9) Updates 09102020 * Release micro-ROS Foxy (#8) Update Cleaning Update Update filesystem Updates Adjust logger level Remove build warning (#10) * Avoid not used warnings * Update Reduce error handling static size (#14) (#15) This reverts commit befc608. Reduce error handling static size (#14) (#15) Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit 1176652) Co-authored-by: Pablo Garrido <[email protected]> Revert "Revert "Install headers to include\${PROJECT_NAME} (ros2#351)"" This reverts commit 4546892. Fix atomic 64 b description (#17) (#18) (cherry picked from commit 85efa4a) Co-authored-by: Pablo Garrido <[email protected]> Add checker for Humble Signed-off-by: Pablo Garrido <[email protected]> time_unix: add zephyr posix time (ros2#368) own implementation allowing to fix error regarding CLOCK_MONOTONIC definition. Signed-off-by: Felipe <[email protected]> time_unix: uses ZEPHYR_VERSION_CODE instead (ros2#390) of KERNELVERSION, since zephyr from 2.7 does not use it anymore. Signed-off-by: Felipe Neves <[email protected]> Fix Signed-off-by: Pablo Garrido <[email protected]> Update Signed-off-by: Pablo Garrido <[email protected]>
- Loading branch information
Showing
17 changed files
with
485 additions
and
14 deletions.
There are no files selected for viewing
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,36 @@ | ||
name: micro-ROS fork Update Checker | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: "Manual trigger" | ||
schedule: | ||
- cron: '0 4 * * *' | ||
|
||
jobs: | ||
micro_ros_fork_update_check: | ||
runs-on: ubuntu-latest | ||
container: ubuntu:20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branches: [foxy, galactic, humble, master] | ||
steps: | ||
- name: Check | ||
id: check | ||
shell: bash | ||
run: | | ||
apt update; apt install -y git | ||
REPO=$(echo ${{ github.repository }} | awk '{split($0,a,"/"); print a[2]}') | ||
git clone -b ${{ matrix.branches }} https://github.com/micro-ros/$REPO | ||
cd $REPO | ||
git remote add ros2 https://github.com/ros2/$REPO | ||
git fetch ros2 | ||
git fetch origin | ||
echo "::set-output name=merge_required::true" | ||
CMP=$(git rev-list --left-right --count ros2/${{ matrix.branches }}...origin/${{ matrix.branches }} | awk '{print $1}') | ||
if [ $CMP = "0" ]; then echo "::set-output name=merge_required::false"; fi | ||
- name: Alert | ||
if: ${{ steps.check.outputs.merge_required == 'true' }} | ||
run: exit 1 |
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
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
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,18 @@ | ||
|
||
#ifndef RCUTILS__CONFIGURATION_FLAGS_H_ | ||
#define RCUTILS__CONFIGURATION_FLAGS_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
#cmakedefine RCUTILS_NO_FILESYSTEM | ||
#cmakedefine RCUTILS_AVOID_DYNAMIC_ALLOCATION | ||
#cmakedefine RCUTILS_NO_THREAD_SUPPORT | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // RCUTILS__CONFIGURATION_FLAGS_H_ |
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
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
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
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,67 @@ | ||
// Copyright 2018 Open Source Robotics Foundation, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef RCUTILS__SECURITY_DIRECTORY_H_ | ||
#define RCUTILS__SECURITY_DIRECTORY_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
#include "rcutils/allocator.h" | ||
#include "rcutils/visibility_control.h" | ||
|
||
#ifndef ROS_SECURITY_NODE_DIRECTORY_VAR_NAME | ||
#define ROS_SECURITY_NODE_DIRECTORY_VAR_NAME "ROS_SECURITY_NODE_DIRECTORY" | ||
#endif | ||
|
||
#ifndef ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME | ||
#define ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME "ROS_SECURITY_ROOT_DIRECTORY" | ||
#endif | ||
|
||
#ifndef ROS_SECURITY_LOOKUP_TYPE_VAR_NAME | ||
#define ROS_SECURITY_LOOKUP_TYPE_VAR_NAME "ROS_SECURITY_LOOKUP_TYPE" | ||
#endif | ||
|
||
/// Return the secure root directory associated with a node given its validated name and namespace. | ||
/** | ||
* E.g. for a node named "c" in namespace "/a/b", the secure root path will be | ||
* "a/b/c", where the delimiter "/" is native for target file system (e.g. "\\" for _WIN32). | ||
* If no exact match is found for the node name, a best match would be used instead | ||
* (by performing longest-prefix matching). | ||
* | ||
* However, this expansion can be overridden by setting the secure node directory environment | ||
* variable, allowing users to explicitly specify the exact secure root directory to be utilized. | ||
* Such an override is useful for where the FQN of a node is non-deterministic before runtime, | ||
* or when testing and using additional tools that may not otherwise be easily provisioned. | ||
* | ||
* \param[in] node_name validated node name (a single token) | ||
* \param[in] node_namespace validated, absolute namespace (starting with "/") | ||
* \param[in] allocator the allocator to use for allocation | ||
* \returns machine specific (absolute) node secure root path or NULL on failure | ||
* returned pointer must be deallocated by the caller of this function | ||
*/ | ||
RCUTILS_PUBLIC | ||
char * rcutils_get_secure_root( | ||
const char * node_name, | ||
const char * node_namespace, | ||
const rcutils_allocator_t * allocator | ||
); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // RCUTILS__SECURITY_DIRECTORY_H_ |
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
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
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.