ahh, the famed steve critchfield has honoured me.
On 03/12/2004 13:21 Steven Critchfield said the following:
[EMAIL PROTECTED]:~$ ldd /bin/bash libncurses.so.5 => /lib/libncurses.so.5 (0x40028000) libdl.so.2 => /lib/libdl.so.2 (0x40067000) libc.so.6 => /lib/libc.so.6 (0x4006a000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) [EMAIL PROTECTED]:~$ ldd /bin/bash|awk '{print $3}'|xargs ls -lHh -rwxr-xr-x 1 root root 88K Oct 13 14:40 /lib/ld-linux.so.2 -rw-r--r-- 1 root root 1.2M Oct 13 14:40 /lib/libc.so.6 -rw-r--r-- 1 root root 9.7K Oct 13 14:40 /lib/libdl.so.2 -rw-r--r-- 1 root root 247K May 27 2004 /lib/libncurses.so.5
Or about a total of 2.2 megs
interesting, because on m0n0wall,
#ls -al /usr/local/bin/php -r-xr-xr-x 1 root wheel 1060380 Jul 18 15:57 php
#ldd /usr/local/bin/php
php:
libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x2815d000)
libm.so.2 => /usr/lib/libm.so.2 (0x28176000)
libc.so.4 => /usr/lib/libc.so.4 (0x28191000)# ls -al /usr/lib/libcrypt.so.2 /usr/lib/libm.so.2 /usr/lib/libc.so.4 -r--r--r-- 1 root wheel 580572 Jun 24 04:03 /usr/lib/libc.so.4 -r--r--r-- 1 root wheel 28432 Jun 24 04:03 /usr/lib/libcrypt.so.2 -r--r--r-- 1 root wheel 117024 Jun 24 04:03 /usr/lib/libm.so.2
which makes it 1.7MB by my calculations (1024*1024 bytes per MB).
Or about 7.2 megs. Do you gain enough by using php to explain an extra 5 megs or so over the normal bash. Of course you could go the busybox
so i guess, the question is, do you gain enough by using bash to warrant the extra 30% or so ?
So quickly you get the fact that on a minimalistic system such as a firewall, you don't want all those libraries and crap. A true firewall
perhaps for a CLI based system. take a look at picobsd for something which fits off a single 1.44MB floppy. however, m0n0wall also provides VPN, captive portal, traffic shaper, DHCP and NAT functionality /with/ a web-based GUI for people who're /unfamiliar/ with the CLI.
wheel(firewall) with the only technology they knew how to use. If true, I would worry about security.
once again, in what manner ? remember, we're discussing the init scripts.
-- Regards, /\_/\ "All dogs go to heaven." [EMAIL PROTECTED] (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
