Skip to content

Commit

Permalink
.github: disable AppArmor for Bubblewrap
Browse files Browse the repository at this point in the history
Fixes:
 bwrap: loopback: Failed RTM_NEWADDR: Permission denied

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb committed Dec 7, 2024
1 parent cc09f36 commit bea4590
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ jobs:
run: cd kernel &&
make defconfig ARCH=${{ matrix.arch }}

- name: disable AppArmor
run: |
# Bubblewrap needs this for RTM_NEWADDR. This may not be required in
# this GitHub runner/container but it's still useful as "documentation"
# https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
if test -e /proc/sys/kernel/apparmor_restrict_unprivileged_unconfined; then
sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
- name: build
run: |
mkosi --version
Expand Down

0 comments on commit bea4590

Please sign in to comment.