Skip to contentSkip to conversation

CVE-2022-24765 Git Errors with Bitbake

DISCUSSION [email protected] 2 participants 3 messages Apr 26, 2022 – May 2, 2022

lore
Share & tools
lore
#0 lore raw

Hello everyone,
since the patch for CVE-2022-24765 (uncontrolled search for git repositories) arrived we have problems using Git as package source. For some reason git thinks that the repositories do not belong to the user who is invoking the bitbake command, even though when checking the file permission manually they seem to be correct:

"fatal: unsafe repository ('...' is owned by someone else)"

So is bitbake using some mechanism (e.g. fake root?) to invoke the git commands? Is there a workaround to fix this?

#1 lore raw

There is a fix in master for this, and more fixes in master-next.

Alex

Quoted 15 lines · On Tue, 26 Apr 2022 at 10:14, <[email protected]> wrote:

Hello everyone,
since the patch for CVE-2022-24765 (uncontrolled search for git repositories) arrived we have problems using Git as package source. For some reason git thinks that the repositories do not belong to the user who is invoking the bitbake command, even though when checking the file permission manually they seem to be correct:

"fatal: unsafe repository ('...' is owned by someone else)"

So is bitbake using some mechanism (e.g. fake root?) to invoke the git commands? Is there a workaround to fix this?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#164861): https://lists.openembedded.org/g/openembedded-core/message/164861
Mute This Topic: https://lists.openembedded.org/mt/90703668/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-