Enable AArch64 syscalls in examples

PiperOrigin-RevId: 375923215
Change-Id: I9523a074579975379b1a9d4644497268781499e1
This commit is contained in:
Christian Blichmann 2021-05-26 05:47:10 -07:00 committed by Copybara-Service
parent f159359f65
commit d73f80cfa5

View File

@ -58,7 +58,12 @@ std::unique_ptr<sandbox2::Policy> GetPolicy() {
.AllowStaticStartup()
.AllowSystemMalloc()
.AllowExit()
#ifdef __NR_access
.BlockSyscallWithErrno(__NR_access, ENOENT)
#endif
#ifdef __NR_faccessat
.BlockSyscallWithErrno(__NR_faccessat, ENOENT)
#endif
.BuildOrDie();
}