[BusyBox] BusyBox / Netkit-Tiny / TinyLogin status...?
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Mar 1 15:25:45 UTC 2001
Erik Andersen wrote:
> > Hmm,
> >
> > I use glibc-2.1.3:
> >
> > 9428 libnss_dns.a
> > 52166 libnss_files.a
> >
> > busybox:
> > 17408 libpwd.a
> > But not have support "services, hosts, networks, rpc, netmasks" files.
> > I not see dispute, equivalent size/featutes.
>
> libnss_dns is not relevant. That is for dns lookups. This code is not
> intended to do anythying for dns lookups. It is intended for password
> and group lookups.
>
> The code in question is libnss_files and libnss_compat. I have often built
> small embedded systems (not all embedded systems are routers) where it is nice
> to not need libnss_files and/or libnss_compat.
O, Thank. I at last has looked, that does libcompat. Appears, that anything
especial, it allows to manipulate connection switching-plus and switching-off
records at use external databases, such as NIS and libnss_db,
therefore I and do not use compat. :))
> As for the size, keep the mind that the 17408 you list for the .a is not
> relevant.
>
> [andersen at slag busybox]$ make
> [---------snip-----------]
> [andersen at slag busybox]$ ll ./busybox
> -rwxr-xr-x 1 andersen andersen 145084 Feb 27 13:14 ./busybox*
> [andersen at slag busybox]$ perl -p -i -e
> "s/^USE_SYSTEM_PWD_GRP.*/USE_SYSTEM_PWD_GRP = true/" Makefile
> [andersen at slag busybox]$ make
> [---------snip-----------]
> [andersen at slag busybox]$ ll ./busybox
> -rwxr-xr-x 1 andersen andersen 143676 Feb 27 13:13 ./busybox*
>
> So using the busybox pwd_grp stuff adds 1.4k to the binary, and avoids
> the need for libnss_compat (40k) and libnss_files (30k). Someone using
> networking with GNU libc will still need libnss_files, so this option is
> only saving them 38.6k for the entire system.
Result:
1) libnss_compat not require for equivalent for you pwd* effect
(I realy use 2 yars without this)
2) libnss_files have not only gpr* functions. Next version busybox
you planed with netkit-tiny and functions getnetbyname() for example
and other get in uclibc, but you not counting size this.
> + 1.5 busybox
> -40.0 libnss_compat
> ---------------------
> -38.6k for the system.
And this sample is false after up points.
> > 4) Yes, inetd also require more addition NSS funcitions.
>
> The pwd_grp stuff is not intended for DNS. Of course it won't
> work for that. It is intended for password and group lookups only.
And for users maybe require alternatives: support PAM, NIS ...
For me very interesing support tacacs and radius.
I very much am upset, that commercial realizations routers have this support,
and with opensource it ignore and lose it.
--w
vodz
More information about the busybox
mailing list