[Buildroot] [git commit] fs/common.mk: disable real chown calls in fakeroot

Peter Korsgaard peter at korsgaard.com
Sun Apr 14 20:24:13 UTC 2019

>>>>> "Peter" == Peter Korsgaard <peter at korsgaard.com> writes:

 > commit: https://git.buildroot.net/buildroot/commit/?id=655acd1df02e5e9ce318aadc33bd6fa8042fc455
 > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

 > fakeroot by default forwards {f,l,}chown calls to libc and ignores
 > permission issues, which may cause issues when building in restricted
 > environments like user namespaces as set up with bubblewrap where a chown
 > call with a uid/gid not mapped in the user namespace instead returns EINVAL.
 > This error is not masked by fakeroot and returned to the caller, causing
 > failures.

 > There is no real reason to really perform the *chown calls in the context of
 > Buildroot (as the calls will likely just fail and files are not accessed
 > outside the fakeroot environment any way).

 > This forwarding can be disabled by setting the FAKEROOTDONTTRYCHOWN
 > environment variable, so set it when fakeroot is executed.

 > Reported-by: Esben Nielsen <nielsen.esben at gmail.com>
 > Signed-off-by: Peter Korsgaard <peter at korsgaard.com>

Committed to 2019.02.x, thanks.

Bye, Peter Korsgaard

More information about the buildroot mailing list