Index: services/shell/runner/host/linux_sandbox.cc |
diff --git a/services/shell/runner/host/linux_sandbox.cc b/services/shell/runner/host/linux_sandbox.cc |
index 24461a5a645c2d1ec3b7e7b179206a51b6850ff4..64ef8b65b262d70723d72d0bb50e923424bb8dee 100644 |
--- a/services/shell/runner/host/linux_sandbox.cc |
+++ b/services/shell/runner/host/linux_sandbox.cc |
@@ -38,12 +38,16 @@ intptr_t SandboxSIGSYSHandler(const struct sandbox::arch_seccomp_data& args, |
const sandbox::syscall_broker::BrokerProcess* broker_process = |
static_cast<const sandbox::syscall_broker::BrokerProcess*>(aux); |
switch (args.nr) { |
+#if defined(__NR_access) |
case __NR_access: |
return broker_process->Access(reinterpret_cast<const char*>(args.args[0]), |
static_cast<int>(args.args[1])); |
+#endif |
+#if defined(__NR_open) |
case __NR_open: |
return broker_process->Open(reinterpret_cast<const char*>(args.args[0]), |
static_cast<int>(args.args[1])); |
+#endif |
case __NR_faccessat: |
if (static_cast<int>(args.args[0]) == AT_FDCWD) { |
return broker_process->Access( |