-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): uninstall apparmor to work-around a compatibilty issue with …
…bitbake Signed-off-by: Cedric Hombourger <[email protected]>
- Loading branch information
1 parent
b19d7aa
commit 67d8ecb
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters