close ALPC ports in sbox integrations tests. This is the first step in locking down ALPC ports.
Closing ALPC ports causes the following tests to break, because they call CreateProcess(). The interception of CreateProcess() tries to call CreateProcess natively, which crashes.
ProcessPolicyTest.TestGetProcessTokenMaxAccess
ProcessPolicyTest.TestGetProcessTokenMaxAccessNoJob
PolicyTargetTest.OpenThread
The changes in process_thread_interception.cc check to see if CSRSS is disconnected, and doesn't use the native CreateProcess if CSRSS is disconnected. This connected flag is implicitly set in the HandleCloserAgent when type "ALPC Port" are requested to be closed.
Therefore this still only affects sbox_integration_tests, but adds some of the capability that will be needed to further lock down CSRSS.
BUG=464430
Review URL: https://codereview.chromium.org/
1226383005
Cr-Commit-Position: refs/heads/master@{#338963}