[OE-core] [PATCH 0/2] busybox updating

Andrej Valek andrej.valek at siemens.com
Wed Oct 4 11:56:37 UTC 2017


I have unpacked the rpm package over command "rpm -qp --scripts
busybox-1.27.2-r0.i586.rpm" and links to /bin/sh looks good for me.

update-alternatives --install /bin/sh sh /bin/busybox.nosuid 50


>   chrt
>   cttyhack
>   init
>   mdev
>   setsid
>   partprobe

You have right, there was a mistake. These applets are disabled in
defconfig, so they are not installed.

Only lzcat, xzcat and nproc are new.

Regards,
Andrej

On 10/04/2017 12:15 PM, Burton, Ross wrote:
> On 4 October 2017 at 07:20, Andrej Valek <andrej.valek at siemens.com 
> <mailto:andrej.valek at siemens.com>> wrote:
> 
>     I have compared no/suid links between these versions. So, I was trying
>     to enable the same applets like in older version and do not enable the
>     new one. Some applets could not be disabled (they are automatically
>     enabled) due to dependencies.
> 
>     For this version of defconfig the new applets are:
>     chrt
>     cttyhack
>     init
>     lzcat
>     mdev
>     nproc
>     setsid
>     xzcat
>     partprobe
> 
> 
> This doesn't quite match what I'm seeing by comparing old and new links in the 
> postinst:
> 
> $ diff then now
> 44c44,45
> < update-alternatives --install /bin/sh sh /bin/busybox.nosuid 50
> ---
>  > update-alternatives --install /bin/sh sh /bin/busybox.suid 50
>  > update-alternatives --install /bin/sh sh /bin/busybox.suid 50
> 122a124
>  > update-alternatives --install /usr/bin/lzcat lzcat /bin/busybox.nosuid 50
> 128a131
>  > update-alternatives --install /usr/bin/nproc nproc /bin/busybox.nosuid 50
> 167a171
>  > update-alternatives --install /usr/bin/xzcat xzcat /bin/busybox.nosuid 50
> 
> Note the two lines installing an alternative of /bin/sh to busybox.suid.
> 
> Assuming they should have alternative links installed, the following applets are 
> still disabled too:
> 
>   chrt
>   cttyhack
>   init
>   mdev
>   setsid
>   partprobe
> 
> Ross
> 



More information about the Openembedded-core mailing list