Use AllowDup helper in AddNetworkProxyPolicy

PiperOrigin-RevId: 496898835
Change-Id: I76968c5c9b25a9e41865b3fad20463661195f581
This commit is contained in:
Wiktor Garbacz 2022-12-21 05:35:20 -08:00 committed by Copybara-Service
parent aff27f4559
commit 7625c3dd24

View File

@ -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,