mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-30 21:03:59 -04:00
ci: Work around AppArmor userns restriction breaking bwrap
CI currently skips a lot of tests. This is due to AppArmor restricting user namespacing to specific executables with a profile. We however build bwrap ourselves and that makes it hard to have a profile for it. Let's just turn the restriction off entirely.
This commit is contained in:
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
@@ -49,6 +49,10 @@ jobs:
|
||||
head -v -n-0 /etc/apt/sources.list.d/* || :
|
||||
# Workaround for https://github.com/orgs/community/discussions/120966
|
||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||
# Workaround for apparmor breaking bwrap by disabling unpriv userns
|
||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
||||
sudo systemctl reload apparmor
|
||||
# Dependencies
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libglib2.0-dev attr gettext bison dbus gtk-doc-tools \
|
||||
libfuse3-dev ostree libostree-dev libarchive-dev libzstd-dev libcap-dev libattr1-dev libdw-dev libelf-dev python3-pyparsing \
|
||||
|
||||
Reference in New Issue
Block a user