From 80e3cfbc505645c5645d696cd56fe4c27989a130 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 11 Oct 2026 21:30:43 +1100 Subject: [PATCH] fix(ci): allow extension namespaces in quality container --- .github/workflows/quality.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 99f12201b..8efcd81f5 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -15,6 +15,10 @@ concurrency: jobs: check: runs-on: ubuntu-latest + container: + image: docker.gitea.com/runner-images:ubuntu-latest + # Docker's default seccomp policy blocks the extension's user/network namespaces. + options: --security-opt seccomp=unconfined steps: - uses: actions/checkout@v4 with: @@ -62,10 +66,12 @@ jobs: git branch main origin/main fi - # Extensions run in an unprivileged user and network namespace, which - # Ubuntu 24.04 runners forbid through AppArmor by default. - - name: Allow unprivileged user namespaces - run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 + - name: Verify extension namespace support + run: | + if [ -e /proc/sys/kernel/apparmor_restrict_unprivileged_userns ]; then + sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 + fi + unshare --user --map-root-user --net true - name: Run definitive gate run: |