• rsesek@chromium.org's avatar
    Alter the design of the bootstrap sandbox to only take over the bootstrap port... · 9d3affb1
    rsesek@chromium.org authored
    Alter the design of the bootstrap sandbox to only take over the bootstrap port of children when necessary.
    
    Rather than replacing the bootstrap port outright in the browser process, this
    change merely registers the sandboxed bootstrap port with launchd. When a
    sandboxed child is being launched with base::LaunchProcess(), a new
    LaunchOptions can specify a bootstrap name to look up and use as a replacement
    bootstrap port.
    
    The bootstrap port in the new child is replaced after fork() but before exec().
    The kernel clears the IPC space during both of these system calls, so no other
    references to the original bootstrap port will exist after replacing the port
    with the sandboxed one and exec()ing.
    
    This change also partially reverts r276026, which introduced a permissive
    policy for NPAPI plugins. Since those plugins are no longer affected by the
    bootstrap sandbox, it can be removed.
    
    BUG=367863,383513,383517,383791,386330
    R=jam@chromium.org, mark@chromium.org
    
    Review URL: https://codereview.chromium.org/347783002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278530 0039d316-1c4b-4281-b951-d872f2087c98
    9d3affb1
plugin_main_mac.mm 1.96 KB