Skip to content

Commit

Permalink
Work around Ubuntu 24.04 bubblewrap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fosslinux committed Dec 21, 2024
1 parent 302bd4c commit 72679e4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/bwrap.apparmor
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2024 Russell Coker <[email protected]>
# SPDX-License-Identifier: CC-BY-NC-SA-3.0
# source: https://etbe.coker.com.au/2024/04/24/ubuntu-24-04-bubblewrap/

abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
userns,

# Site-specific additions and overrides. See local/README for details.
include if exists <local/bwrap>
}
6 changes: 6 additions & 0 deletions .github/workflows/bwrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,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: Query cache for sources
id: cache
uses: actions/cache/restore@v4
Expand Down Expand Up @@ -72,6 +74,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 pass1_image
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 72679e4

Please sign in to comment.