]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: only write one ELF note for libcrypto
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 4 Jun 2026 13:35:47 +0000 (15:35 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 4 Jun 2026 17:33:19 +0000 (18:33 +0100)
commit7b2c00434572f6633d2bc3ee5e930d5999eb517b
tree0538afbdb17c7ec6793034fa91c5867793dd7897
parent6133bc71c81441ee3900c4ebbbb42325553517e9
resolve: only write one ELF note for libcrypto

systemd-resolved has 2 contradictory ELF notes for libcrypto:

```
$ systemd-analyze dlopen-metadata /usr/lib/systemd/systemd-resolved
FEATURE   DESCRIPTION                                SONAME         PRIORITY
libcrypto Support for cryptographic operations       libcrypto.so.3 recommended
idn       Support for internationalized domain names libidn2.so.0   recommended
libcrypto Support for cryptographic operations       libcrypto.so.3 required
libssl    Support for TLS                            libssl.so.3    required
```

In order to have a single note, condition its priority based on whether
DNS-over-TLS is enabled.
src/resolve/resolved-dns-dnssec.c
src/resolve/resolved-util.h