]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: Skip creating stubs if missing CAP_NET_BIND_SERVICE 26228/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 26 Jan 2023 21:20:01 +0000 (22:20 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 26 Jan 2023 21:29:05 +0000 (22:29 +0100)
commit0398c084efba664e44625d82f2be72e18c952678
treeb314deb850bc6a8733c511bb39a5969ac700ccb1
parent2642d22adc66771bd8bbb4187dc3de5472d04ad6
resolve: Skip creating stubs if missing CAP_NET_BIND_SERVICE

If we don't have CAP_NET_BIND_SERVICE, we won't be able to bind
the stub listener socket, so let's skip creating it and log a warning.

We do the same for the extra stubs if they're configured on privileged
ports.
src/resolve/resolved-dns-stub.c