[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: serioius resgression with cpio -p and symlinks in busybox 1.28.2
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2018-03-31 14:25:57
Message-ID: CAK1hOcNOYaYbnxvyUR+sL7rxwLGziBhc=kejRXRqp_Owf=X4RQ () mail ! gmail ! com
[Download RAW message or body]

I can release a 1.28.3 in a few days if you want. Do you?

Let's see what else would crop up during weekend.

On Fri, Mar 30, 2018 at 1:29 PM, Natanael Copa <ncopa@alpinelinux.org> wrote:
> Hi,
> 
> There is a serious regression in busybox 1.28.2 that breaks booting
> alpine linux machines.
> 
> The problem comes from /bin/sh -> /bin/busybox symlink no longer getting copied \
> with cpio -p. 
> To reproduce:
> 
> $ mkdir -p 1/bin 2
> $ ln -s /bin/busybox 1/bin/sh
> $ (cd 1 && echo "/bin/sh" | cpio -vdmp ../2)
> bin/sh
> 1 blocks
> $ find 2/
> 2/
> 2/bin
> 
> The /bin/sh symlink was silently ignored and this causes the
> initramfs's #/bin/sh script fail at boot.
> 
> It was previously possible to work around it by setting
> EXTRACT_UNSAFE_SYMLINKS=1 but this no longer works.
> 
> https://git.alpinelinux.org/cgit/aports/commit/main/mkinitfs?id=1b6a167de8ce02d69dc8a8c8f4638aefd27c0ebe
>  
> Downstream bug report:
> https://bugs.alpinelinux.org/issues/8751
> 
> -nc
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic