mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Allow Asan to get sigaltstack
Include sigaltstack into AllowHandleSignals PiperOrigin-RevId: 319293484 Change-Id: I4d60715893bd07eff047d2bced1450a3cd29bcec
This commit is contained in:
parent
6008dc6db4
commit
88e9dbf8d4
|
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user