diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-02-13 14:51:50 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-02-14 11:16:32 +0000 |
commit | 6f9ba85ba9e84eb225ab8d4a6f0cb99e5dc61563 (patch) | |
tree | c2c5da74223f544b0e28d372138288b1bffc045d /chromium/testing/test_env.py | |
parent | 01e89433adf2d5575b2089716217299519a9ce15 (diff) | |
download | qtwebengine-chromium-6f9ba85ba9e84eb225ab8d4a6f0cb99e5dc61563.tar.gz |
BASELINE: Update Chromium to 108.0.5359.220
Change-Id: Ibfd5669271969a41c1e74a55be1ffcd5d32c8e98
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/460143
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/testing/test_env.py')
-rwxr-xr-x | chromium/testing/test_env.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/chromium/testing/test_env.py b/chromium/testing/test_env.py index 6abd1a44bca..7ed4a7dde7c 100755 --- a/chromium/testing/test_env.py +++ b/chromium/testing/test_env.py @@ -17,24 +17,6 @@ import time # This is hardcoded to be src/ relative to this script. ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -CHROME_SANDBOX_ENV = 'CHROME_DEVEL_SANDBOX' -CHROME_SANDBOX_PATH = '/opt/chromium/chrome_sandbox' - - -def get_sandbox_env(env): - """Returns the environment flags needed for the SUID sandbox to work.""" - extra_env = {} - chrome_sandbox_path = env.get(CHROME_SANDBOX_ENV, CHROME_SANDBOX_PATH) - # The above would silently disable the SUID sandbox if the env value were - # an empty string. We don't want to allow that. http://crbug.com/245376 - # TODO(jln): Remove this check once it's no longer possible to disable the - # sandbox that way. - if not chrome_sandbox_path: - chrome_sandbox_path = CHROME_SANDBOX_PATH - extra_env[CHROME_SANDBOX_ENV] = chrome_sandbox_path - - return extra_env - def trim_cmd(cmd): """Removes internal flags from cmd since they're just used to communicate from @@ -324,7 +306,6 @@ def run_executable(cmd, env, stdoutfile=None, cwd=None): # Used by base/base_paths_linux.cc as an override. Just make sure the default # logic is used. env.pop('CR_SOURCE_ROOT', None) - extra_env.update(get_sandbox_env(env)) # Copy logic from tools/build/scripts/slave/runtest.py. asan = '--asan=1' in cmd |