Non-SFI mode: Use dummy PID for NaCl's IPC channel for nacl_helper_nonsfi.

In nacl_helper_nonsfi, getpid() is prohibited to be called by seccomp-bpf
(will be implemented somehow soon). So, base::GetCurrentProcID() used in IPC
library, which uses getpid(), would cause a SIGSYS crashing.
As, in nacl_helper_nonsfi, PID is actually not used, so this CL replaces it
with -1 (dummy PID).

Note that the more generic CL crrev.com/695353005, which replaces PID with
dummy also on Linux platforms, was landed once, but reverted due to it was
still in use (crbug.com/441312). This CL extracts only Non-SFI related
part to avoid breakage.

TEST=Ran bots.
BUG=358465, 441312
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_rel_precise32,linux_arm

Review URL: https://codereview.chromium.org/879303004

Cr-Commit-Position: refs/heads/master@{#314283}


CrOS-Libchrome-Original-Commit: 763f8be26fd888e0ae7070a1a977238d2d65433b
2 files changed
tree: 4a2b8c0b629e7bca5341b0451554167f82f06b94
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/