DescriptionNon-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
Committed: https://crrev.com/763f8be26fd888e0ae7070a1a977238d2d65433b
Cr-Commit-Position: refs/heads/master@{#314283}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Messages
Total messages: 10 (2 generated)
|