diff options
author | Alexander Potapenko <glider@google.com> | 2012-12-10 13:10:40 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-12-10 13:10:40 +0000 |
commit | 25742574510cfb41b97e32f63f107fbb9b328d13 (patch) | |
tree | 71d878704853a5ecbf156b0d27b386792de19338 /include | |
parent | 694fe46661a138d0eede348f3645ce37025b6ff4 (diff) | |
download | compiler-rt-25742574510cfb41b97e32f63f107fbb9b328d13.tar.gz compiler-rt-25742574510cfb41b97e32f63f107fbb9b328d13.tar.bz2 compiler-rt-25742574510cfb41b97e32f63f107fbb9b328d13.tar.xz |
Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which should be used by
the client programs to notify the tools that sandboxing is about to be turned on.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/sanitizer/common_interface_defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index 1eb18209..9d8fa558 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -81,6 +81,12 @@ extern "C" { // stderr. void __sanitizer_set_report_fd(int fd) SANITIZER_INTERFACE_ATTRIBUTE; + + // Notify the tools that the sandbox is going to be turned on. The reserved + // parameter will be used in the future to hold a structure with functions + // that the tools may call to bypass the sandbox. + void __sanitizer_sandbox_on_notify(void *reserved) + SANITIZER_WEAK_ATTRIBUTE SANITIZER_INTERFACE_ATTRIBUTE; } // extern "C" #endif // SANITIZER_COMMON_INTERFACE_DEFS_H |