mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Allow sched_getaffinity with sanitizers
PiperOrigin-RevId: 515024410 Change-Id: I7c48d701b0c3ecab41c3363f8cb46a1c8fa6d97e
This commit is contained in:
parent
e3b2d232b4
commit
80cc894c39
|
@ -324,6 +324,9 @@ PolicyBuilder& PolicyBuilder::AllowLlvmSanitizers() {
|
|||
// Sanitizers may try color output. For example:
|
||||
// https://github.com/llvm/llvm-project/blob/87dd3d350c4ce0115b2cdf91d85ddd05ae2661aa/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp#L157
|
||||
OverridableBlockSyscallWithErrno(__NR_ioctl, EPERM);
|
||||
// https://github.com/llvm/llvm-project/blob/9aa39481d9eb718e872993791547053a3c1f16d5/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp#L150
|
||||
// https://sourceware.org/git/?p=glibc.git;a=blob;f=nptl/pthread_getattr_np.c;h=de7edfa0928224eb8375e2fe894d6677570fbb3b;hb=HEAD#l188
|
||||
OverridableBlockSyscallWithErrno(__NR_sched_getaffinity, EPERM);
|
||||
// https://github.com/llvm/llvm-project/blob/02c2b472b510ff55679844c087b66e7837e13dc2/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp#L434
|
||||
#ifdef __NR_readlink
|
||||
OverridableBlockSyscallWithErrno(__NR_readlink, ENOENT);
|
||||
|
|
Loading…
Reference in New Issue
Block a user