From 105849980c8b885d904dfc041b30076fa1379a86 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Sat, 21 Dec 2024 11:46:26 +1100 Subject: [PATCH] Work around Ubuntu 24.04 bubblewrap bug --- .github/workflows/bwrap.apparmor | 13 +++++++++++++ .github/workflows/bwrap.yml | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/bwrap.apparmor diff --git a/.github/workflows/bwrap.apparmor b/.github/workflows/bwrap.apparmor new file mode 100644 index 00000000..8f1390dc --- /dev/null +++ b/.github/workflows/bwrap.apparmor @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: 2024 Russell Coker +# SPDX-License-Identifier: CC-BY-NC-SA-3.0 +# source: https://etbe.coker.com.au/2024/04/24/ubuntu-24-04-bubblewrap/ + +abi , +include + +profile bwrap /usr/bin/bwrap flags=(unconfined) { + userns, + + # Site-specific additions and overrides. See local/README for details. + include if exists +} diff --git a/.github/workflows/bwrap.yml b/.github/workflows/bwrap.yml index e3e5637d..464de327 100644 --- a/.github/workflows/bwrap.yml +++ b/.github/workflows/bwrap.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Install bubblewrap run: sudo apt install bubblewrap + - name: Work around Ubuntu 24.04 bubblewrap bug + run: sudo cp .github/workflows/bwrap.apparmor /etc/apparmor.d/bwrap && sudo systemctl reload apparmor - name: Checkout repo uses: actions/checkout@v4 with: @@ -65,6 +67,8 @@ jobs: steps: - name: Install bubblewrap run: sudo apt install bubblewrap + - name: Work around Ubuntu 24.04 bubblewrap bug + run: sudo cp .github/workflows/bwrap.apparmor /etc/apparmor.d/bwrap && sudo systemctl reload apparmor - name: Checkout repo uses: actions/checkout@v4 with: @@ -125,6 +129,8 @@ jobs: # There is a strange bug(?) in nongnu, when you clone a git repository # against a commit != HEAD with depth=1, it errors out. fetch-depth: 0 + - name: Work around Ubuntu 24.04 bubblewrap bug + run: sudo cp .github/workflows/bwrap.apparmor /etc/apparmor.d/bwrap && sudo systemctl reload apparmor - name: Get pass2_image uses: actions/download-artifact@v4 with: