Dynamic Root Support For FreeBSD Now Available
Dan writes "FreeBSD's Gordon Tetlow has committed his enhancements to enable users to build /bin
and /sbin dynamically linked on FreeBSD. His reason to do this is two-fold. One is to give better support for PAM and NSS in the base system. The second is to save some disk space. Currently (on his x86 box), /bin and /sbin are 32 MB. With a dynamically linked root (and some pruning of some binaries), the /bin, /lib, and /sbin come out to 6.1 MB. This should be great for people with 2.x and 3.x era root partitions that are only about 50 MB. Gordon says that there will be a performance hit associated with this. He did a quick measurement at boot and his boot time (from invocation of /etc/rc to the login prompt) went from 12 seconds with a static root to 15 seconds with a dynamic root."
Thats why the librarys are in /lib not /usr/lib
it will also make it impossible to recover a server if you accidentally delete /usr
/bin and /sbin are being moved into /lib, so everything which is being changed from static to dynamic will still work even if /usr is gone.
/rescue is still static (and crunched).
No. The libraries used by stuff in
Also note that
Tarsnap: Online backups for the truly paranoid
I'd imagine that if NetBSD and OpenBSD don't already have this ability it will be a matter of time as the BSD's share much between each other. Just look at the realpath vulnerability that they all were affected by.
Only 'flamers' flame!
Does slashdot hate my posts?
" not only will this affect performance, but it will also make it impossible to recover a server if you accidentally delete /usr,"
/rescue contains statically-link versions of the tools that one would need to recover from problems. It might not be able to recover a deleted filesystem, but if you're trouncing careless around like that then there are plenty of other ways to shoot your feet off too.
What wasn't mentioned in the write-up is that
Cat, the other, tastier white meat.