From 7625c3dd247a04bf498f4218940e2130612fcfdd Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Wed, 21 Dec 2022 05:35:20 -0800 Subject: [PATCH] Use AllowDup helper in AddNetworkProxyPolicy PiperOrigin-RevId: 496898835 Change-Id: I76968c5c9b25a9e41865b3fad20463661195f581 --- sandboxed_api/sandbox2/policybuilder.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sandboxed_api/sandbox2/policybuilder.cc b/sandboxed_api/sandbox2/policybuilder.cc index 575c84a..ee01274 100644 --- a/sandboxed_api/sandbox2/policybuilder.cc +++ b/sandboxed_api/sandbox2/policybuilder.cc @@ -1355,10 +1355,8 @@ PolicyBuilder& PolicyBuilder::AddNetworkProxyPolicy() { AllowFutexOp(FUTEX_WAKE); AllowFutexOp(FUTEX_WAIT); AllowFutexOp(FUTEX_WAIT_BITSET); + AllowDup(); AllowSyscalls({ -#ifdef __NR_dup2 - __NR_dup2, -#endif __NR_recvmsg, __NR_close, __NR_gettid,