Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435372 - net-misc/openssh-6.1_p1 support --with-ldns for positive sshfp/ad recognition.
Summary: net-misc/openssh-6.1_p1 support --with-ldns for positive sshfp/ad recognition.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on: 452770
Blocks:
  Show dependency tree
 
Reported: 2012-09-18 01:39 UTC by Michael Weber (RETIRED)
Modified: 2013-01-26 03:13 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2012-09-18 01:39:01 UTC
I've experimented with DNSSEC and SSHFP ecdsa key, plus unbound as local validating dns resolver (dig spot.xmw.de reports the AD flag).

--with-ldns is required for ssh to see these records as secure

ssh -v spot.xmw.de
...
debug1: found 6 secure fingerprints in DNS
...

it's otherwise
...
debug1: found 6 insecure fingerprints in DNS
...

my quick workaround was

emerge -av1 net-libs/ldns
EXTRA_ECONF="--with-ldns" ebuild /usr/portage/net-misc/openssh/openssh-6.1_p1.ebuild manifest install qmerge

maybe you can add an use flag for that, there is no specific for *dnssec* stuff, imho.

thank you
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-18 01:14:25 UTC
InCVS as of 6.1_p1-r1
Comment 2 Nikos Chantziaras 2013-01-18 03:35:19 UTC
I have the "ldns" USE flag disabled, but the ebuild still pulls in net-libs/ldns.
Comment 3 Michael Weber (RETIRED) gentoo-dev 2013-01-18 10:13:18 UTC
(In reply to comment #2)
> I have the "ldns" USE flag disabled, but the ebuild still pulls in
> net-libs/ldns.
Reported as bug 452772 by Lars.

Reopen because the ldns[ssl] dependency triggers ldns[ecdsa] (ecdsa defaults to on) which to configure with openssl[bindist] (bindist defaults to on)
See bug 452770 and my comment https://bugs.gentoo.org/show_bug.cgi?id=452770#c3
for details.

I strongly suggest to depend on "ldns? ( ldns[ecdsa] )", to aid ECDSA deployment.
Comment 4 Oleh 2013-01-18 11:58:31 UTC
this breaks stages builds, ldns pulled even with ldns? and failing to build due to ecdsa
configure: error: OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-18 17:35:01 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > I have the "ldns" USE flag disabled, but the ebuild still pulls in
> > net-libs/ldns.
> Reported as bug 452772 by Lars.
That part is fixed already.

> Reopen because the ldns[ssl] dependency triggers ldns[ecdsa] (ecdsa defaults
> to on) which to configure with openssl[bindist] (bindist defaults to on)
> See bug 452770 and my comment
> https://bugs.gentoo.org/show_bug.cgi?id=452770#c3
> for details.
> 
> I strongly suggest to depend on "ldns? ( ldns[ecdsa] )", to aid ECDSA
> deployment.

How about this for dealing with stage building:
ldns? ( 
 !bindist? ( net-libs/ldns[ecdsa,ssl] )
 bindist? ( net-libs/ldns[-ecdsa,ssl] )
)
Comment 6 Michael Weber (RETIRED) gentoo-dev 2013-01-19 00:13:29 UTC
(In reply to comment #5)
> How about this for dealing with stage building:
> ldns? ( 
>  !bindist? ( net-libs/ldns[ecdsa,ssl] )
>  bindist? ( net-libs/ldns[-ecdsa,ssl] )
> )

fine. I asume stage3 tarballs qualify for binary distribution. stupid laws.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-22 02:47:47 UTC
comment #5 implemented in CVS.
Comment 8 Michael Weber (RETIRED) gentoo-dev 2013-01-23 10:41:33 UTC
Really sorry to repoen this again,

but after the recent ldns update, openssh needs an update to.
Otherwise it'd crash like

michael@lore ~ % ssh root@::1
ssh: symbol lookup error: ssh: undefined symbol: strlcpy

michael@x ~ % ssh lore
ssh_exchange_identification: Connection closed by remote host

even on the running instance from before the update.
Comment 9 Michael Weber (RETIRED) gentoo-dev 2013-01-23 10:48:43 UTC
(In reply to comment #8)
> but after the recent ldns update, openssh needs an update to.
> Otherwise it'd crash like

revdep-rebuild --ignore -- -av doesn't get it
Comment 10 Michael Weber (RETIRED) gentoo-dev 2013-01-23 23:31:28 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > but after the recent ldns update, openssh needs an update to.
> > Otherwise it'd crash like
> 
> revdep-rebuild --ignore -- -av doesn't get it

or @preserved-rebuilds ;-)
Comment 11 SpanKY gentoo-dev 2013-01-26 03:13:12 UTC
that isn't a bug in openssh.  file a bug for ldns.