[llvm-commits] [PATCH][libsanitizer] Introduce the __sanitizer_sandbox_on_notify API function

Alexander Potapenko glider at google.com
Mon Dec 10 04:00:43 PST 2012


Hi all,

This patch adds the __sanitizer_sandbox_on_notify function that a
client program should call to notify libsanitizer about a sandbox
being turned on.
The current implementation makes libsanitizer update the
/proc/self/maps cache on Linux and is a no-op on Windows and Mac.
The only use-case for this so far is to run an instrumented Chrome
under ASan with the seccomp-bpf sandbox. However the function has a
reserved void* parameter which should make it possible to use any of
our tools with other sandboxes and on other platforms in the future
(for example the application can provide the tool with syscall
replacements).

http://llvm-reviews.chandlerc.com/D196

--
Alexander Potapenko
Software Engineer
Google Moscow



More information about the llvm-commits mailing list