Help needed in disabling busybox configuration for linux hardening requirement.

purushi1 . purushi1 at gmail.com
Tue Oct 13 01:21:03 UTC 2015


Hi,

Just a reminder, any suggestions to my earlier query. I am re sending my
query:


It throws me the following error:
==================================================
/projects/cc-ban-vwstg4/purush/TOOLCHAIN/stbgcc-4.5.4-2.9/bin/../lib/gcc/mipsel-linux-uclibc/4.5.4/../../../../mipsel-linux-uclibc/bin/ld:
can not make stub section: File format not recognized
/projects/cc-ban-vwstg4/purush/TOOLCHAIN/stbgcc-4.5.4-2.9/bin/../lib/gcc/mipsel-linux-uclibc/4.5.4/../../../../mipsel-linux-uclibc/bin/ld:
failed to set dynamic section sizes: File format not recognized
collect2: ld returned 1 exit status
Makefile:716: recipe for target 'busybox_unstripped' failed
make[5]: *** [busybox_unstripped] Error 1
make[5]: Leaving directory
'/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs/user/busybox'
makefile:25: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory
'/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs/user/busybox'
Makefile:344: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory
'/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs/user'
Makefile:86: recipe for target 'initrd_kernel' failed
make[2]: *** [initrd_kernel] Error 1
make[2]: Leaving directory
'/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs'
Makefile:75: recipe for target 'images' failed
make[1]: *** [images] Error 2
make[1]: Leaving directory
'/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs'
Makefile:187: recipe for target 'images-7362a0-small' failed
make: *** [images-7362a0-small] Error 2
==================================================

If I add the following configurations in "whitelist.busybox-small" then it
works fine

CONFIG_BRCTL=y
CONFIG_FEATURE_BRCTL_FANCY=y
CONFIG_FEATURE_BRCTL_SHOW=y


thanks,
Purushotham

On Sat, Oct 10, 2015 at 5:41 PM, purushi1 . <purushi1 at gmail.com> wrote:

> Hi,
>
> Thanks for the response.
> I have attached the modified "whitelist.busybox-small" configuration file .
> It throws me the following error:
>
> ==================================================
> /projects/cc-ban-vwstg4/purush/TOOLCHAIN/stbgcc-4.5.4-2.9/bin/../lib/gcc/mipsel-linux-uclibc/4.5.4/../../../../mipsel-linux-uclibc/bin/ld:
> can not make stub section: File format not recognized
> /projects/cc-ban-vwstg4/purush/TOOLCHAIN/stbgcc-4.5.4-2.9/bin/../lib/gcc/mipsel-linux-uclibc/4.5.4/../../../../mipsel-linux-uclibc/bin/ld:
> failed to set dynamic section sizes: File format not recognized
> collect2: ld returned 1 exit status
> Makefile:716: recipe for target 'busybox_unstripped' failed
> make[5]: *** [busybox_unstripped] Error 1
> make[5]: Leaving directory
> '/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs/user/busybox'
> makefile:25: recipe for target 'all' failed
> make[4]: *** [all] Error 2
> make[4]: Leaving directory
> '/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs/user/busybox'
> Makefile:344: recipe for target 'all' failed
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> '/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs/user'
> Makefile:86: recipe for target 'initrd_kernel' failed
> make[2]: *** [initrd_kernel] Error 1
> make[2]: Leaving directory
> '/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs'
> Makefile:75: recipe for target 'images' failed
> make[1]: *** [images] Error 2
> make[1]: Leaving directory
> '/projects/cc-ban-vwstg4/purush/KERNEL/3.3-3.4/Trial3/uclinux-rootfs'
> Makefile:187: recipe for target 'images-7362a0-small' failed
> make: *** [images-7362a0-small] Error 2
> ==================================================
>
> If I add the following configurations, then it works fine
>
> CONFIG_BRCTL=y
> CONFIG_FEATURE_BRCTL_FANCY=y
> CONFIG_FEATURE_BRCTL_SHOW=y
>
> Let me know if you need any other information.
>
> thanks for your support.
>
> Best regards,
> Purushotham
>
>
>
> On Fri, Oct 9, 2015 at 1:37 PM, Cristian Ionescu-Idbohrn <
> cristian.ionescu-idbohrn at axis.com> wrote:
>
>> On Fri, 9 Oct 2015, purushi1 . wrote:
>> >
>> > We want to disable CONFIG_BRCTL, CONFIG_FEATURE_BRCTL_FANCY,
>> > CONFIG_FEATURE_BRCTL_SHOW options in Busybox configuration.
>>
>> Those configuration knobs are used in networking/brctl.c only.
>>
>> > But if we disable these options in busybox configuration. Then we
>> > are getting compilation error in busybox.
>>
>> Would maybe help if you show us the "compilation error".
>>
>>
>> Cheers,
>>
>> --
>> Cristian
>> _______________________________________________
>> busybox mailing list
>> busybox at busybox.net
>> http://lists.busybox.net/mailman/listinfo/busybox
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20151013/cb036fc3/attachment-0001.html>


More information about the busybox mailing list