]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: Restrict the valid charset of DNR names 34927/head
authorRonan Pigott <ronan@rjp.ie>
Tue, 29 Oct 2024 04:26:51 +0000 (21:26 -0700)
committerRonan Pigott <ronan@rjp.ie>
Tue, 29 Oct 2024 21:18:37 +0000 (14:18 -0700)
commitb31b99d76fa221bd2f01f593e8426d64fa1b40d1
treef7b89aee84e28216ce2be1d5ae4c56759a729a04
parentf54f473b3663ac6e12d25cbbe7ca15f67742406b
network: Restrict the valid charset of DNR names

Not all possible DNS names will survive serialization. Restrict the set
of valid dns names to LDH encoded names.

Fixes: 25c33e350042 (network: parse RFC9463 DHCPv4 DNR option, 2024-01-16)
Fixes: a07e83cc58f6 (network: Parse RFC9463 DHCPv6 DNR option, 2024-01-17)
Fixes: 0c90d1d2f243 (ndisc: Parse RFC9463 encrypted DNS (DNR) option, 2024-01-19)
src/libsystemd-network/ndisc-option.c
src/libsystemd-network/sd-dhcp-lease.c
src/libsystemd-network/sd-dhcp6-lease.c