[Buildroot] Failed to build in a user namespace without the root user
Peter Korsgaard
peter at korsgaard.com
Wed Apr 3 20:17:35 UTC 2019
>>>>> "Esben" == Esben Nielsen <nielsen.esben at gmail.com> writes:
> Without FAKEROOTDONTTRYCHOWN it ends up in the kernel, which does a
> lookup in the current user namespace and looks for uid 0 - which is
> not there. Then it returns EINVAL, not EPERM.
> When I set FAKEROOTDONTTRYCHOWN (from outside buildroot), I don't get that.
> Hints how to reproduce:
> bwrap --bind / / --uid 1000 --gid 1000 --dev /dev <make command>
> bwrap 0.3.0 is compiled as user without suid bit set.
Ok, thanks. I've send a patch with a more detailed commit message doing
just that. Can you give it a try?
https://patchwork.ozlabs.org/patch/1076377/
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list