summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_message.cc
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2015-07-28 16:16:48 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-28 23:17:18 +0000
commit3c175a3dbe6f597c6011975d7488e5db8283760c (patch)
tree120b61fd5e8d0a58f79abbd39ad8365a8c611394 /ipc/ipc_message.cc
parent487b27c50b92baa28f907ea7f553908476521aba (diff)
downloadchromium_src-3c175a3dbe6f597c6011975d7488e5db8283760c.zip
chromium_src-3c175a3dbe6f597c6011975d7488e5db8283760c.tar.gz
chromium_src-3c175a3dbe6f597c6011975d7488e5db8283760c.tar.bz2
ipc: Create an unforgeable mechanism to get the process id of the sender.
ChannelReader now adds the process id of the sender to all external messages. BUG=513431 Review URL: https://codereview.chromium.org/1262543003 Cr-Commit-Position: refs/heads/master@{#340798}
Diffstat (limited to 'ipc/ipc_message.cc')
-rw-r--r--ipc/ipc_message.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc
index c8f7e84..07d5d25 100644
--- a/ipc/ipc_message.cc
+++ b/ipc/ipc_message.cc
@@ -78,6 +78,7 @@ Message::Message(const Message& other) : base::Pickle(other) {
void Message::Init() {
dispatch_error_ = false;
+ sender_pid_ = base::kNullProcessId;
#ifdef IPC_MESSAGE_LOG_ENABLED
received_time_ = 0;
dont_log_ = false;