]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
selftest/minidebuginfo: extract files from tar archive using tarfile module
authorAlexander Kanavin <alex@linutronix.de>
Fri, 20 Mar 2026 13:46:58 +0000 (14:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Mar 2026 14:47:36 +0000 (14:47 +0000)
commitd52d00a3bb4a1ba93e88f1d24d8bb99d6aa321eb
tree53f754ee59d55e0e68b2aa5265a088804314f8be
parentde3f35114653092cb2096abde8cbf0cc477dd4ac
selftest/minidebuginfo: extract files from tar archive using tarfile module

Python 3.14 added security checks around archive extraction, and by
default will refuse to handle symlinks with absolute paths. It's possible
to handle this using 'filter' argument, but it is not always available
in older Python versions on various host distributions we need to support,
so let's extract only the needed files directly using tarfile module.

busybox is itself a symlink to busybox.nosuid, so both are extracted.

[YOCTO #16195]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/minidebuginfo.py