Help needed in disabling busybox configuration for linux hardening requirement.
walter harms
wharms at bfs.de
Tue Oct 13 14:58:19 UTC 2015
Am 13.10.2015 03:21, schrieb purushi1 .:
> 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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
this error is typical when you compiled with gcc when cross-gcc was required.
use "file" to identify the miscompiled one.
To make sure your chain is up to the task you can create a helloworld.c and check
with file what type of executable or object you need.
re,
wh
> 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
>>>
>>
>>
>
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list