tests: Write services needed for pyrad

pyrad does an internal call to getaddrinfo with the service "www".
Make sure this service is known by writing an appropriate
/etc/services file.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
Benjamin Berg 2023-12-25 12:21:00 +02:00 committed by Jouni Malinen
parent 7a47756373
commit 6278ab7a06

View file

@ -93,6 +93,11 @@ tcp 6 TCP
udp 17 UDP udp 17 UDP
ipv6-icmp 58 IPv6-ICMP ipv6-icmp 58 IPv6-ICMP
EOF EOF
# for pyrad
cat > /etc/services <<EOF
http 80/tcp www www-http
http 80/udp www www-http
EOF
# we may need /etc/alternatives, at least on Debian-based systems # we may need /etc/alternatives, at least on Debian-based systems
ln -s /tmp/etc/alternatives /etc/ ln -s /tmp/etc/alternatives /etc/