Ross Burton <[email protected]> escreveu (quinta, 12/09/2024 à(s) 18:32):
> > > > On 12 Sep 2024, at 18:29, Jose Quaresma <[email protected]> wrote: > > The error message could be better imo. > > It will also happen inside a docker container that runs without the > NET_ADMIN capability, which is the default. > > > https://docs.docker.com/engine/containers/run/#runtime-privilege-and-linux-capabilities > > Do you have a suggestion for better wording? Also do you have an example > of it failing before this patch, in case we can extend the check to > actually handle this case specifically. > No, I don't. Maybe we can suggest if the build runs inside a container, it need to run with: --cap-add NET_ADMIN or --privileged Inside a docker container without the above args and before the patch, the unshare() call fail but since this is not fatal nothing happens and the build continues without creating the new network space. Jose > > Ross -- Best regards, José Quaresma
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#204460): https://lists.openembedded.org/g/openembedded-core/message/204460 Mute This Topic: https://lists.openembedded.org/mt/108416977/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
