Skip to content

Create the SSL_CTX for QUIC before chroot and privilege drop - #1187

Merged
gthess merged 2 commits into
masterfrom
doq-sslctx
Dec 3, 2024
Merged

Create the SSL_CTX for QUIC before chroot and privilege drop#1187
gthess merged 2 commits into
masterfrom
doq-sslctx

Conversation

@gthess

@gthess gthess commented Nov 22, 2024

Copy link
Copy Markdown
Member

For behavioral consistency with the other SSL_CTX creations. Fixes #1185.

  privilege drop, just like the other SSL_CTX creations.
@gthess
gthess requested a review from wcawijngaards November 22, 2024 10:58
@gthess gthess self-assigned this Nov 22, 2024

@wcawijngaards wcawijngaards left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This moves the ssl context creation to earlier, and passes the result to the doq connection. The code looks good.

Comment thread services/listen_dnsport.c Outdated
Comment thread services/listen_dnsport.c Outdated
Comment thread services/listen_dnsport.c Outdated
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
@gthess

gthess commented Dec 3, 2024

Copy link
Copy Markdown
Member Author

Thanks, good catch! I was compiling with support for both ngtcp2 and nghttp2 so it went unnoticed.

@gthess
gthess merged commit 61d7250 into master Dec 3, 2024
gthess added a commit that referenced this pull request Dec 3, 2024
- Merge #1187: Create the SSL_CTX for QUIC before chroot and privilege
  drop.
@gthess
gthess deleted the doq-sslctx branch December 3, 2024 13:26
jedisct1 added a commit to jedisct1/unbound that referenced this pull request Dec 26, 2024
* nlnet/master:
  - For NLnetLabs#1207: [FR] Support for RESINFO RRType 261 (RFC9606), add   LDNS_RR_TYPE_RESINFO similar to LDNS_RR_TYPE_TXT.
  Changelog entry for NLnetLabs#1204: - Merge NLnetLabs#1204: ci: set persist-credentials: false for actions/checkout   per zizmor suggestion.
  set persist-credentials: false per zizmor suggestion
  - Fix typo in log_servfail.tdir test.
  Changelog entry for NLnetLabs#1187: - Merge NLnetLabs#1187: Create the SSL_CTX for QUIC before chroot and privilege   drop.
  Create the SSL_CTX for QUIC before chroot and privilege drop (NLnetLabs#1187)
  - Safeguard alias loop while looking in the cache for expired answers.
  - Merge NLnetLabs#1198: Fix log-servfail with serve expired and no useful cache   contents.
  - For NLnetLabs#1175, the default value of serve-expired-ttl is set to 86400   (1 day) as suggested by RFC8767.
  Changelog entry for NLnetLabs#1189, NLnetLabs#1197: - Merge NLnetLabs#1189: Fix the dname_str method to cause conversion errors   when the domain name length is 255. - Merge NLnetLabs#1197: dname_str() fixes.
  - For NLnetLabs#1193, introduce log-servfail.tdir and cleanup the log-servfail   setting from other tests.
  - Fix NLnetLabs#1193: log-servfail fails to log host SERVFAIL responses in   Unbound 1.19.2 on Ubuntu 24.04.1 LTS, by not considering cached   failures when trying to reply with expired data.
  - For NLnetLabs#1189, homogenize the input buffer size for dname_str().
  - For NLnetLabs#1189, add unit tests for dname_str() and debug check the input   buffer size.
  Fix the dname_str method to cause conversion errors when the domain name length is 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doq bug

2 participants