From 8d11bb48b4c002e24c9ba6a197f4f5bb27ea7b9e Mon Sep 17 00:00:00 2001 From: Dan Minor Date: Wed, 28 Aug 2019 19:48:38 +0000 Subject: [PATCH] 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 --- python/mozbuild/mozbuild/action/check_binary.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/python/mozbuild/mozbuild/action/check_binary.py b/python/mozbuild/mozbuild/action/check_binary.py index 90f16da0c1dd..d85536f2672e 100644 --- a/python/mozbuild/mozbuild/action/check_binary.py +++ b/python/mozbuild/mozbuild/action/check_binary.py @@ -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()