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

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: Spelling 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
« no previous file with comments | « sandbox/mac/launchd_interception_server.cc ('k') | sandbox/mac/os_compatibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/os_compatibility.h
diff --git a/sandbox/mac/os_compatibility.h b/sandbox/mac/os_compatibility.h
index 2d9b096c4fc07f605865814631b4796a94515bc0..aaedcb8c812c2e98fb94142113996a7ac8a78c6b 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 keys.
+ SwapIntegerIsGetOnly swap_integer_is_get_only;
};
// Gets the compatibility shim for the launchd job subsystem.
« no previous file with comments | « sandbox/mac/launchd_interception_server.cc ('k') | sandbox/mac/os_compatibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698