Allow Asan to get sigaltstack

Include sigaltstack into AllowHandleSignals

PiperOrigin-RevId: 319293484
Change-Id: I4d60715893bd07eff047d2bced1450a3cd29bcec
This commit is contained in:
Sandboxed API Team 2020-07-01 14:08:35 -07:00 committed by Copybara-Service
parent 6008dc6db4
commit 88e9dbf8d4

View File

@ -184,6 +184,9 @@ PolicyBuilder& PolicyBuilder::AllowLlvmSanitizers() {
// Sanitizers read from /proc. For example: // Sanitizers read from /proc. For example:
// https://github.com/llvm-mirror/compiler-rt/blob/69445f095c22aac2388f939bedebf224a6efcdaf/lib/sanitizer_common/sanitizer_linux.cpp#L1101 // https://github.com/llvm-mirror/compiler-rt/blob/69445f095c22aac2388f939bedebf224a6efcdaf/lib/sanitizer_common/sanitizer_linux.cpp#L1101
AddDirectory("/proc"); AddDirectory("/proc");
#endif
#if defined(ADDRESS_SANITIZER)
AllowSyscall(__NR_sigaltstack);
#endif #endif
return *this; return *this;
} }
@ -347,6 +350,9 @@ PolicyBuilder& PolicyBuilder::AllowHandleSignals() {
#endif #endif
#ifdef __NR_sigprocmask #ifdef __NR_sigprocmask
__NR_sigprocmask, __NR_sigprocmask,
#endif
#ifdef __NR_sigaltstack
__NR_sigaltstack,
#endif #endif
}); });
} }