On Linux, move the passing of filedescriptors to a dedicated socketpair().

(Patch by Markus)

This allows the fast path to use read()/write() instead of recvmsg()/sendmsg()
which is much cheaper for the Seccomp sandbox.

Also, fixed minor seccomp sandbox issues discovered by this change.

BUG=19120
ISSUE=164373

http://codereview.chromium.org/177049


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25518 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: baf556aa12ddfb301f2a54f5c741505b55bad18c
2 files changed
tree: 920a8f050877d64a3fa670fdfbbe3b14a1d847cb
  1. base/
  2. build/
  3. ipc/
  4. testing/