diff options
author | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-21 00:02:12 +0000 |
---|---|---|
committer | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-21 00:02:12 +0000 |
commit | 9fe2d0edd3d21c60886ebeb449fc057ace9ebe76 (patch) | |
tree | a2fefa7cf2e08596e50d62e79cda95dbd57c084f /sandbox/tests | |
parent | 7e365c3fb2e127d1838ec665ba16baad5bf9a36e (diff) | |
download | chromium_src-9fe2d0edd3d21c60886ebeb449fc057ace9ebe76.zip chromium_src-9fe2d0edd3d21c60886ebeb449fc057ace9ebe76.tar.gz chromium_src-9fe2d0edd3d21c60886ebeb449fc057ace9ebe76.tar.bz2 |
Revert 127836 - Revert 127820 - Revert 127795 - Make sandbox explicitly block opening broker and sandboxed processes
BUG=119182
BUG=117627
BUG=119150
TEST=sbox_validation_tests
Review URL: https://chromiumcodereview.appspot.com/9716027
TBR=jschuh@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9796002
TBR=zmo@google.com
Review URL: https://chromiumcodereview.appspot.com/9801003
TBR=zmo@google.com
Review URL: https://chromiumcodereview.appspot.com/9796005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/tests')
-rw-r--r-- | sandbox/tests/validation_tests/suite.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sandbox/tests/validation_tests/suite.cc b/sandbox/tests/validation_tests/suite.cc index 7c3b1d7..a5886cd 100644 --- a/sandbox/tests/validation_tests/suite.cc +++ b/sandbox/tests/validation_tests/suite.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -105,19 +105,6 @@ TEST(ValidationSuite, TestProcess) { EXPECT_EQ(SBOX_TEST_DENIED, runner.RunTest(command)); } -// Tests that sandboxed processes are explicitly denied access to the broker -// (and, transitively, each other). -TEST(ValidationSuite, TestProcessDenyAces) { - TestRunner runner; - wchar_t command[1024] = {0}; - - runner.GetPolicy()->SetTokenLevel(USER_INTERACTIVE, USER_INTERACTIVE); - runner.GetPolicy()->SetIntegrityLevel(INTEGRITY_LEVEL_MEDIUM); - - wsprintf(command, L"OpenProcessCmd %d", ::GetCurrentProcessId()); - EXPECT_EQ(SBOX_TEST_DENIED, runner.RunTest(command)); -} - // Tests if the threads are correctly protected by the sandbox. TEST(ValidationSuite, TestThread) { TestRunner runner; |