Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 2014 11:54:10 -0500
From:      Leif Pedersen <bilbo@hobbiton.org>
To:        Paul Hoffman <paul.hoffman@vpnc.org>
Cc:        freebsd-security@freebsd.org
Subject:   Re: ports requiring OpenSSL not honouring OpenSSL from ports
Message-ID:  <CAK-wPOi60JMc%2BR2zkmLvoJGu6_AFTHcgrUKHpZUy1qgHSEVG2Q@mail.gmail.com>
In-Reply-To: <CAK-wPOhxRtCxCsxE1Y5UvL-U18FOnhgMMfH7gDZ5PHZp_sH_5w@mail.gmail.com>
References:  <201404271508.s3RF8sMA014085@catnip.dyslexicfish.net> <AFCC7276-2C8F-423E-A417-AE492F5162E6@vpnc.org> <CAK-wPOhxRtCxCsxE1Y5UvL-U18FOnhgMMfH7gDZ5PHZp_sH_5w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I realized that we don't really need any extravagance from ld at all.

Move the files for the base version of openssl to a different location, and
replace them with symlinks. Then when installing the port/pkg, change those
symlinks to point to the newly installed version. Include an uninstall
script to put them back. It's kind of like how having multiple versions of
perl installed works.

This would also fix the problem that if you have both installed then which
openssl executables you get depends on $PATH.

Thoughts?
On 2014-04-27 11:36 AM, "Leif Pedersen" <bilbo@hobbiton.org> wrote:

> With respect that there are valid reasons to have port build options, I
> kind of hate them. You can't choose them with pkg, and if you pick the
> wrong one changing it later is a fragile process, and there's no indication
> if a dependency needs options set a particular way.
>
> I'm not bashing the necessary ones, just agonizing against adding more
> unless it's *really* necessary.
>
> Are there any ld tricks one could use to make everything use
> /usr/local/lib/openssl or /usr/lib/openssl at runtime, system wide,
> including base tools? Or are the ABIs different? Then ports could always
> build against the base version all the time, and you could switch the whole
> system cleanly to the ported version when needed.
>
> It seems to me that picking one or the other per port is never desirable
> and means base tools cannot use an upgraded version. Such a strategy would
> fix that, if it's possible. But I admit I'm not an ld expert.
>
> Is this strategy possible?
> On 2014-04-27 10:52 AM, "Paul Hoffman" <paul.hoffman@vpnc.org> wrote:
>
>> On Apr 27, 2014, at 8:08 AM, Jamie Landeg-Jones <jamie@dyslexicfish.net>
>> wrote:
>>
>> > Basically what I'm asking: Shouldn't a port that uses OpenSSL *always*
>> > build against the port if it's installed?
>>
>> Yes, that is a reasonable expectation. I certainly had it in my head when
>> I rebuilt Sendmail+TLS after heartbleed, but I didn't think of checking it.
>>
>> > I realise this isn't always possible to test, especially if the port
>> Makefile
>> > doesn't have any openSSL configuration options, but I'd like to hear
>> > others opinions on the matter.
>>
>> It would be good to add such options to as many ports as possible if it
>> can be done cleanly.
>>
>> Also, note that this is not bashing on OpenSSL: given their new
>> significant funding, I would certainly expect the OpenSSL project to be
>> finding-and-fixing Heartbleed-level bugs repeatedly in the coming years. It
>> is basically impossible to fix such a bug without bad actors being able to
>> determine and exploit some of the fixes in unpatched systems.
>>
>> --Paul Hoffman
>> _______________________________________________
>> freebsd-security@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-security
>> To unsubscribe, send any mail to "
>> freebsd-security-unsubscribe@freebsd.org"
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK-wPOi60JMc%2BR2zkmLvoJGu6_AFTHcgrUKHpZUy1qgHSEVG2Q>