From d73f80cfa5c9e88596b40396d46ccf5e92663020 Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Wed, 26 May 2021 05:47:10 -0700 Subject: [PATCH] Enable AArch64 syscalls in examples PiperOrigin-RevId: 375923215 Change-Id: I9523a074579975379b1a9d4644497268781499e1 --- sandboxed_api/sandbox2/examples/zlib/zpipe_sandbox.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sandboxed_api/sandbox2/examples/zlib/zpipe_sandbox.cc b/sandboxed_api/sandbox2/examples/zlib/zpipe_sandbox.cc index 24a7495..4f9459d 100644 --- a/sandboxed_api/sandbox2/examples/zlib/zpipe_sandbox.cc +++ b/sandboxed_api/sandbox2/examples/zlib/zpipe_sandbox.cc @@ -58,7 +58,12 @@ std::unique_ptr GetPolicy() { .AllowStaticStartup() .AllowSystemMalloc() .AllowExit() +#ifdef __NR_access .BlockSyscallWithErrno(__NR_access, ENOENT) +#endif +#ifdef __NR_faccessat + .BlockSyscallWithErrno(__NR_faccessat, ENOENT) +#endif .BuildOrDie(); }