DragonFly kernel List (threaded) for 2003-09
Re: Prebinding for DragonFly/FreeBSD-4
:I haven't had any free time to look at the Prebinding code yet. I take
:it won't be the default option or at minimal an easy way to opt out of
:it ? From the FreeBSD impalemention I think some of what it is doing,
:untouched area's for hijacking. I'll try to mark some time off tomorrow
:so I can look
:a little further.
Prebinding generation is built into ld.so, activated by environment
variables (which is how /usr/sbin/prebind functions), but will not be
activated when you run a program normally which effectively means that
if you have not run 'prebind' on a program, that program will not use
It's very straightforward. The prebinding files are stored in
/var/db/prebind, which you have to create (it will be added to the
mtree when the prebinding is comitted).
leaf# prebind /usr/bin/od
object /usr/bin/od uniqid -1826558394
object /usr/lib/libc.so.4 uniqid 1044496813
object /usr/lib/libc.so.4 count 203
leaf# ls -la /var/db/prebind/
drwxr-xr-x 2 root wheel 512 Sep 17 11:09 .
drwxr-xr-x 5 root wheel 512 Sep 17 11:08 ..
-rw-r--r-- 1 root wheel 21828 Sep 17 11:09 9320ee46.od
leaf# prebind /usr/local/bin/mysql
-rw-r--r-- 1 root wheel 74492 Sep 17 11:11 5add498f.mysql