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 67d8ecb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/apparmor-policy-bitbake/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# 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: |
sudo tee /etc/apparmor.d/bitbake > /dev/null <<-EOF
abi <abi/4.0>,
include <tunables/global>
profile bitbake /**/bitbake/bin/bitbake flags=(unconfined) {
userns,
}
EOF
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 67d8ecb

Please sign in to comment.