Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: sandbox/mac/os_compatibility.h

Issue 284153005: Bootstrap Sandbox: Ensure swap_integer messages are read-only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/mac/os_compatibility.h
diff --git a/sandbox/mac/os_compatibility.h b/sandbox/mac/os_compatibility.h
index 2d9b096c4fc07f605865814631b4796a94515bc0..077432bb4dab837e3220a80cda1389f046d51930 100644
--- a/sandbox/mac/os_compatibility.h
+++ b/sandbox/mac/os_compatibility.h
@@ -21,6 +21,8 @@ namespace sandbox {
typedef std::string (*LookUp2GetRequestName)(const mach_msg_header_t*);
typedef void (*LookUp2FillReply)(mach_msg_header_t*, mach_port_t service_port);
+typedef bool (*SwapIntegerIsGetOnly)(const mach_msg_header_t*);
+
struct LaunchdCompatibilityShim {
// The msgh_id for look_up2.
mach_msg_id_t msg_id_look_up2;
@@ -35,6 +37,11 @@ struct LaunchdCompatibilityShim {
// A function to formulate a reply to a look_up2 message, given the reply
// message and the port to return as the service.
LookUp2FillReply look_up2_fill_reply;
+
+ // A function to take a swap_integer message and return true if the message
+ // is only getting the value of a key, neither setting it directly, nor
+ // swapping two kes.
Mark Mentovai 2014/05/15 22:36:56 Spelling nit: keys. I don’t actually see in the c
Robert Sesek 2014/05/15 22:54:17 Done.
+ SwapIntegerIsGetOnly swap_integer_is_get_only;
};
// Gets the compatibility shim for the launchd job subsystem.

Powered by Google App Engine
This is Rietveld 408576698