Re: [docs] [yocto] Workaround for uid_map error on Ubuntu 24.04

2024-05-23 Thread Quentin Schulz via lists.yoctoproject.org
Hi Michael, On 5/23/24 10:45 AM, Michael Opdenacker wrote: On 5/21/24 at 16:31, Etienne Cordonnier via lists.yoctoproject.org wrote: The way I see to patch this at the moment is to print instructions for the users to run this command manually when this specific error happens (we can't run it

Re: [docs] [yocto] Workaround for uid_map error on Ubuntu 24.04

2024-05-23 Thread Michael Opdenacker via lists.yoctoproject.org
On 5/21/24 at 16:31, Etienne Cordonnier via lists.yoctoproject.org wrote: The way I see to patch this at the moment is to print instructions for the users to run this command manually when this specific error happens (we can't run it automatically as part of bitbake since it needs sudo, and al

Re: [yocto] Workaround for uid_map error on Ubuntu 24.04

2024-05-21 Thread Etienne Cordonnier via lists.yoctoproject.org
The way I see to patch this at the moment is to print instructions for the users to run this command manually when this specific error happens (we can't run it automatically as part of bitbake since it needs sudo, and also it decreases the security on the machine so end-users should be aware of it)

Re: [yocto] Workaround for uid_map error on Ubuntu 24.04

2024-05-21 Thread Quentin Schulz via lists.yoctoproject.org
Hi Étienne, On 5/19/24 10:34 PM, Etienne Cordonnier via lists.yoctoproject.org wrote: You don't often get email from ecordonnier=snap@lists.yoctoproject.org. Learn why this is important Hi all, in order to build poky on Ubuntu 24.04, I have nee

Re: [yocto] Workaround for uid_map error on Ubuntu 24.04

2024-05-19 Thread Martin Jansa
Yes, it's also described in: https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890 echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns is bigger hammer, but works as well. On Sun, May 19, 2024 at 10:34 PM Etienne Cordonnier via lists.yoctoproject.org wrote:

[yocto] Workaround for uid_map error on Ubuntu 24.04

2024-05-19 Thread Etienne Cordonnier via lists.yoctoproject.org
Hi all, in order to build poky on Ubuntu 24.04, I have needed this workaround to fix the error "Errno 1 Operation not permitted" when disable_network (from bitbake/lib/bb/utils.py) attempts to write to the file /proc/self/uid_map: $ sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns For