[Bug 1753572] Re: cpio in Busybox 1.27 ingnores "unsafe links"
Marc Deslauriers
marc.deslauriers at canonical.com
Fri Jun 22 12:24:14 UTC 2018
Hi! I've prepared a busybox update and uploaded it to my PPA here:
https://launchpad.net/~mdeslaur/+archive/ubuntu/testing
Could you please see if it resolves your issue? If so, I'll upload it to
cosmic and SRU it to bionic.
Thanks!
** Also affects: busybox (Ubuntu Bionic)
Importance: Undecided
Status: New
** Also affects: debirf (Ubuntu Bionic)
Importance: Undecided
Status: New
** Also affects: busybox (Ubuntu Cosmic)
Importance: Undecided
Status: Confirmed
** Also affects: debirf (Ubuntu Cosmic)
Importance: Undecided
Status: Confirmed
** Changed in: busybox (Ubuntu Bionic)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to busybox in Ubuntu.
https://bugs.launchpad.net/bugs/1753572
Title:
cpio in Busybox 1.27 ingnores "unsafe links"
Status in busybox package in Ubuntu:
Confirmed
Status in debirf package in Ubuntu:
Confirmed
Status in busybox source package in Bionic:
Confirmed
Status in debirf source package in Bionic:
New
Status in busybox source package in Cosmic:
Confirmed
Status in debirf source package in Cosmic:
Confirmed
Bug description:
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
busybox:
Installed: 1:1.27.2-2ubuntu3
Candidate: 1:1.27.2-2ubuntu3
3) Expected my CPIO archive to be fully extracted with proper symlinks
Command: unxz < /rootfs.cxz | cpio -i
4) 'Unsafe' symlinks were ignored such as:
sbin/init -> /lib/systemd/systemd
With the broken 1.27 sbin/init does not get created at all and my
debirf initrd fails to load/boot properly.
1.22 from Xenial works.
GNU Cpio also works.
It looks like 1.28 adds an env var to override this behavior:
libarchive: do not extract unsafe symlinks unless
$EXTRACT_UNSAFE_SYMLINKS=1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1753572/+subscriptions
More information about the foundations-bugs
mailing list