Skip to content

Commit

Permalink
fix(ci): uninstall apparmor to work-around a compatibilty issue with …
Browse files Browse the repository at this point in the history
…bitbake

Signed-off-by: Cedric Hombourger <[email protected]>
  • Loading branch information
chombourger committed Jan 13, 2025
1 parent b19d7aa commit 9888ade
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/apparmor-policy-bitbake/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright (c) Siemens AG, 2025
#
# This file is subject to the terms and conditions of the MIT License.
# See COPYING file in the top-level directory.
#
# SPDX-License-Identifier: MIT

name: 'let bitbake create user namespaces'
description: 'Remove AppArmor to work-around a compatibility issue with bitbake'
runs:
using: "composite"
steps:
- name: create AppArmor policy for bitbake
run: |
pol=/etc/apparmor.d/bitbake
echo 'abi <abi/4.0>,' | sudo tee ${pol}
echo 'include <tunables/global>,' | sudo tee -a ${pol}
echo 'profile bitbake /**/bitbake/bin/bitbake flags=(unconfined) {' | sudo tee -a ${pol}
echo ' userns,' | sudo tee -a ${pol}
echo '}' | sudo tee -a ${pol}
shell: bash
- name: load AppArmor policy for bitbake
run: |
cat /etc/apparmor.d/bitbake
sudo apparmor_parser -r /etc/apparmor.d/bitbake
shell: bash
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
uses: actions/checkout@v4
- name: Free Disk Space
uses: ./.github/workflows/free-disk-space
- name: Configure AppArmor for bitbake
uses: ./.github/workflows/apparmor-policy-bitbake
- name: Cache downloads and sstate
uses: actions/cache@v4
with:
Expand Down

0 comments on commit 9888ade

Please sign in to comment.