poky/meta/conf
Ross Burton 3f17ee4ebe bitbake.conf: mark all directories as safe for git to read
Recent git releases containing [1] have an ownership check when opening
repositories, and refuse to open a repository if it is owned by a
different user.

This breaks any use of git in do_install, as that is executed by the
(fake) root user. Whilst not common, this does happen.

Setting the git configuration safe.directories=* disables this check, so
that git is usable in fakeroot tasks.  This can be set globally via the
internal environment variable GIT_CONFIG_PARAMETERS, we can't use
GIT_CONFIG_*_KEY/VALUE as that isn't present in all the releases which
have the ownership check.

We already set GIT_CEILING_DIRECTORIES to ensure that git doesn't
recurse up out of the work directory, so this isn't a security issue.

[1] 8959555cee

(From OE-Core rev: 7a97531169d662fe0466db5992566bcdbe3a0d5f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8bed8e6993e7297bdcd68940aa0d47ef47120117)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-03 21:02:02 +01:00
..
distro uninative: Upgrade to 3.6 with gcc 12 support 2022-04-22 16:12:18 +01:00
machine conf/machine: fix QEMU x86 sound options 2022-04-09 08:27:04 +01:00
machine-sdk Convert to new override syntax 2021-08-02 15:44:10 +01:00
multiconfig
abi_version.conf abi_version/sstate: Bump to fix rpm corruption issues 2021-10-08 16:43:59 +01:00
bitbake.conf bitbake.conf: mark all directories as safe for git to read 2022-05-03 21:02:02 +01:00
ccache.conf
conf-notes.txt conf-notes.txt: now suggesting to run 'runqemu qemux86-64' 2021-07-25 18:06:31 +01:00
documentation.conf insane.bbclass: Add a check for directories that are expected to be empty 2021-11-21 11:41:39 +00:00
image-uefi.conf Convert to new override syntax 2021-08-02 15:44:10 +01:00
layer.conf layer.conf: Override changes mean we're only compatible with honister 2021-08-02 15:44:10 +01:00
licenses.conf common-licenses, licenses.conf: Remove duplicate licenses 2021-09-06 09:49:50 +01:00
migrate_localcount.conf
multilib.conf multilib: Avoid sysroot race issues when multilib enabled 2021-10-08 16:43:59 +01:00
prexport.conf
primport.conf
sanity.conf sanity.conf: Require bitbake 1.51.1 2021-08-02 15:44:10 +01:00