From 4ec1f6d39fd2c7bc8dec58d79bdcdaf7c99744a4 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 14 Aug 2020 13:40:34 +0000 Subject: [PATCH] Bug 1659057 - Allow hw.memsize system call. r=spohl This fixes the following error when running on Apple Silicon DTK: AGX: agxs_util.cpp:355:size_t getSystemMemorySize(): !!! Verification failed: status == 0 Differential Revision: https://phabricator.services.mozilla.com/D87048 --- security/sandbox/mac/SandboxPolicyContent.h | 1 + 1 file changed, 1 insertion(+) diff --git a/security/sandbox/mac/SandboxPolicyContent.h b/security/sandbox/mac/SandboxPolicyContent.h index 102bb95e81da..820931c8f1a6 100644 --- a/security/sandbox/mac/SandboxPolicyContent.h +++ b/security/sandbox/mac/SandboxPolicyContent.h @@ -111,6 +111,7 @@ static const char SandboxPolicyContent[] = R"SANDBOX_LITERAL( ; removing it. (sysctl-name "kern.hostname") (sysctl-name "hw.machine") + (sysctl-name "hw.memsize") (sysctl-name "hw.model") (sysctl-name "hw.ncpu") (sysctl-name "hw.activecpu")