Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2003 10:28:42 +0200
From:      Brad Knowles <brad.knowles@skynet.be>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        "Matthew N. Dodd" <mdodd@FreeBSD.ORG>
Subject:   Re: Preliminary ELF prebinding patches available.
Message-ID:  <a0600125cbaf78024ba67@[10.0.1.2]>
In-Reply-To: <20030526053120.GB1941@athlon.pn.xcllnt.net>
References:  <20030525061524.H30007@sasami.jurai.net> <xzpaddb8ab8.fsf@flood.ping.uio.no> <20030525084629.R30007@sasami.jurai.net> <20030525222955.GA826@athlon.pn.xcllnt.net> <20030525190744.A86964@sasami.jurai.net> <20030526001924.GA1272@athlon.pn.xcllnt.net> <20030525202140.Y86964@sasami.jurai.net> <20030526053120.GB1941@athlon.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:31 PM -0700 2003/05/25, Marcel Moolenaar wrote:

>  Hence, prebind information is decoupled from the executable. One
>  of the more obvious complexities is the fact that the naming scheme
>  is such that multiple binaries can have the same prebind cache file.
>  The collision is currently not handled, other than making sure that
>  the prebind information for binary A1 is not used by binary A2. But
>  other complexities exist. What if by some unlucky draw of faith you
>  have two totally independent executables that both resolve to the
>  same prebind file *and* happen to have the same build ID? You have
>  an undetectable collision.

	How painful would it be to do a checksum (ideally, MD5 hash) of 
the binary in question?  Or at least recording path to the binary 
within the prebind cache file?  Or maybe file metadata like the 
ownership, permissions, and date/time stamp?

-- 
Brad Knowles, <brad.knowles@skynet.be>

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
     -Benjamin Franklin, Historical Review of Pennsylvania.

GCS/IT d+(-) s:+(++)>: a C++(+++)$ UMBSHI++++$ P+>++ L+ !E-(---) W+++(--) N+
!w--- O- M++ V PS++(+++) PE- Y+(++) PGP>+++ t+(+++) 5++(+++) X++(+++) R+(+++)
tv+(+++) b+(++++) DI+(++++) D+(++) G+(++++) e++>++++ h--- r---(+++)* z(+++)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a0600125cbaf78024ba67>