Bug 1554976 - Allow network functions needed by Rust mDNS responder; r=tjr

This removes these functions: bind, getaddrinfo, recvfrom, sendto, setsockopt,
socket from the check_networking test to allow for their use by the Rust mDNS
responder.

Differential Revision: https://phabricator.services.mozilla.com/D38488

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dan Minor 2019-08-28 19:48:38 +00:00
Родитель 00e5276301
Коммит 8d11bb48b4
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -254,16 +254,14 @@ def check_networking(binary):
retcode = 0
networking_functions = set([
# socketpair is not concerning; it is restricted to AF_UNIX
"socket", "connect", "accept", "bind", "listen",
"getsockname", "getsockopt", "setsockopt",
"recv", "recvfrom",
"send", "sendto",
"connect", "accept", "listen", "getsockname", "getsockopt",
"recv", "send",
# We would be concerned by recvmsg and sendmsg; but we believe
# they are okay as documented in 1376621#c23
"gethostbyname", "gethostbyaddr", "gethostent", "sethostent", "endhostent",
"gethostent_r", "gethostbyname2", "gethostbyaddr_r", "gethostbyname_r",
"gethostbyname2_r",
"getaddrinfo", "getservent", "getservbyname", "getservbyport", "setservent",
"getservent", "getservbyname", "getservbyport", "setservent",
"getprotoent", "getprotobyname", "getprotobynumber", "setprotoent",
"endprotoent"])
bad_occurences_names = set()