Files
qt5/coin/provisioning/common/linux/fix-bitbake-apparmor.sh
Tero Heikkinen 4a184bed88 Unix: Bash scripts needs to be executable
Pick-to: 6.10 6.8 6.5
Task-number: QTQAINFRA-7709
Change-Id: Ia8802cc2c5e7fb8ed63e261f70fb343cd55a1dfa
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
(cherry picked from commit 0ab91c0886)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2026-02-23 05:30:25 +00:00

17 lines
597 B
Bash
Executable File

#!/usr/bin/env bash
#Copyright (C) 2024 The Qt Company Ltd
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-unprivileged-user-namespace-restrictions
# https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2056555/comments/34
sudo bash -c 'cat > /etc/apparmor.d/bitbake' << EOF
abi <abi/4.0>,
include <tunables/global>
profile bitbake /**/bitbake/bin/bitbake* flags=(unconfined) {
userns,
}
EOF
sudo apparmor_parser -r /etc/apparmor.d/bitbake