Commit 5896605e authored by Sajjad Mirza's avatar Sajjad Mirza Committed by Commit Bot

Allowing prctl through sandbox in coverage build.

The LLVM coverage runtime uses this system call.

Bug: 842424
Change-Id: I68160535194fe2fbfc58c712a8b19daebc22de89
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1637855Reviewed-by: default avatarChris Palmer <palmer@chromium.org>
Commit-Queue: Sajjad Mirza <sajjadm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665300}
parent 84478916
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include "base/clang_coverage_buildflags.h"
#include "base/logging.h" #include "base/logging.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl.h" #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
...@@ -127,6 +128,12 @@ ResultExpr EvaluateSyscallImpl(int fs_denied_errno, ...@@ -127,6 +128,12 @@ ResultExpr EvaluateSyscallImpl(int fs_denied_errno,
#endif // defined(ADDRESS_SANITIZER) || defined(THREAD_SANITIZER) || #endif // defined(ADDRESS_SANITIZER) || defined(THREAD_SANITIZER) ||
// defined(MEMORY_SANITIZER) // defined(MEMORY_SANITIZER)
#if BUILDFLAG(CLANG_COVERAGE)
if (SyscallSets::IsPrctl(sysno)) {
return Allow();
}
#endif
if (IsBaselinePolicyAllowed(sysno)) { if (IsBaselinePolicyAllowed(sysno)) {
return Allow(); return Allow();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment