From 58c3f80d5755891bb300bfdf9eda7377d2a98893 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Fri, 13 Jan 2023 04:40:47 -0800 Subject: [PATCH] Allow MADV_HUGEPAGE used by tcmalloc PiperOrigin-RevId: 501815420 Change-Id: I22d6408e4e6ca375823b7b9448547cc082fe5421 --- sandboxed_api/sandbox2/policybuilder.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sandboxed_api/sandbox2/policybuilder.cc b/sandboxed_api/sandbox2/policybuilder.cc index 0a109fe..6b3afa1 100644 --- a/sandboxed_api/sandbox2/policybuilder.cc +++ b/sandboxed_api/sandbox2/policybuilder.cc @@ -340,6 +340,7 @@ PolicyBuilder& PolicyBuilder::AllowLimitedMadvise() { ARG_32(2), JEQ32(MADV_DONTNEED, ALLOW), JEQ32(MADV_REMOVE, ALLOW), + JEQ32(MADV_HUGEPAGE, ALLOW), JEQ32(MADV_NOHUGEPAGE, ALLOW), }); }