mount-idmapped is a tool to create idmapped mounts, a feature recently integrated in kernel 5.12 and that allows processes to see a different UID and GID on that mount. This patch downloads (errors are ignored) an artifact from $MOUNT_IDMAPPED_URL/mount-idmapped, where MOUNT_IDMAPPED_URL is an environment variable to be set in the configuration of the testing platform (for Github Actions, the variable should be added in an environment named 'test'). Signed-off-by: Roberto Sassu <roberto.sassu@xxxxxxxxxx> --- .github/workflows/ci.yml | 4 ++++ .travis.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51f7dbe0aaa6..4cfffbbd85f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,6 +140,10 @@ jobs: if [ -f linux ]; then chmod +x linux fi + curl -L ${{ secrets.MOUNT_IDMAPPED_URL }}/mount-idmapped -s -f --output mount-idmapped || echo + if [ -f mount-idmapped ]; then + chmod +x mount-idmapped + fi - name: Compiler version run: $CC --version diff --git a/.travis.yml b/.travis.yml index 23c220e857b6..f3e3d93e1907 100644 --- a/.travis.yml +++ b/.travis.yml @@ -104,6 +104,11 @@ before_install: if [ -f "linux" ]; then chmod +x linux fi + - curl -L $MOUNT_IDMAPPED_URL/mount-idmapped -s -f --output mount-idmapped || echo + - > + if [ -f "mount-idmapped" ]; then + chmod +x mount-idmapped + fi - $CONTAINER build $CONTAINER_ARGS -t ima-evm-utils . script: -- 2.25.1