DragonFly BSD
DragonFly kernel List (threaded) for 2003-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Prebinding for DragonFly/FreeBSD-4

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Sep 2003 11:12:49 -0700 (PDT)

:I haven't had any free time to look at the Prebinding code yet. I take 
:it that
: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, 
:is potentially
: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).

					Matthew Dillon 

leaf# prebind /usr/bin/od
  object /usr/bin/od                    uniqid -1826558394
  object /usr/lib/libc.so.4             uniqid 1044496813
Non-PLT Prebindings:
  object /usr/lib/libc.so.4             count 203
PLT Prebindings:
leaf# ls -la /var/db/prebind/
total 26
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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]