Public bug reported:
From Ubuntu 24.04, apparmor is enabled by default, and restricts the
use of unprivileged user namespaces. This change make yocto project,
which use bitbake as build tool failed to build on ubuntu24.04.
Related bug: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2
The following profile works for me, using ** because user might put the
code anywhere, this might could match any path entry.
$ cat /etc/apparmor.d/bitbake
abi ,
include
profile bitbake /**/bitbake/bin/bitbake flags=(unconfined) {
userns,
}
$ sudo apparmor_parser -r /etc/apparmor.d/bitba