CVE-2022-24765 Git Errors with Bitbake
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?
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]]
-=-=-=-=-=-=-=-=-=-=-=-
Ok thanks. I found the commit id:
https://git.yoctoproject.org/poky/commit/?id=21559199516a31c7635c5f2d874eaa4a92fff0e5
Unfortunately, it will probably take some time until the solution is included on all our build machines.
Until then, we fixed our setup by using PSEUDO_UNLOAD=1 before any git command.