Chris Masone | 105706e | 2011-04-29 14:37:11 -0700 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # The names of expected mount-points, devices, magic files, etc on chrome os. |
| 6 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 7 | # Constants used by other constants. |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 8 | USER_DATA_DIR = '/home/chronos' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 9 | WHITELIST_DIR = '/var/lib/whitelist' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 10 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 11 | |
| 12 | # Rest of constants. |
| 13 | BROWSER = 'chrome' |
Chris Masone | 93e65d0 | 2011-03-10 07:22:21 -0800 | [diff] [blame] | 14 | BROWSER_EXE = '/opt/google/chrome/' + BROWSER |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 15 | |
Chris Masone | eb32f93 | 2011-07-27 16:51:07 -0700 | [diff] [blame] | 16 | CHROME_CORE_MAGIC_FILE = '/mnt/stateful_partition/etc/collect_chrome_crashes' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 17 | CHROME_LOG_DIR = '/var/log/chrome' |
| 18 | CHROME_WINDOW_MAPPED_MAGIC_FILE = \ |
| 19 | '/var/run/state/windowmanager/initial-chrome-window-mapped' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 20 | |
Ken Mixter | fa61689 | 2010-11-11 11:59:08 -0800 | [diff] [blame] | 21 | CLEANUP_LOGS_PAUSED_FILE = '/var/lib/cleanup_logs_paused' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 22 | |
Chris Sosa | ed8013a | 2012-01-24 10:35:31 -0800 | [diff] [blame] | 23 | CLIENT_LOGIN_URL = '/accounts/ClientLogin' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 24 | |
Chris Masone | d931e8c | 2011-11-09 13:17:16 -0800 | [diff] [blame] | 25 | CRASH_DIR = '/var/spool/crash' |
Ben Chan | 8d92904 | 2012-01-04 20:53:48 -0800 | [diff] [blame] | 26 | CRASH_REPORTER_RESIDUE_DIR = '/tmp/crash_reporter' |
Chris Masone | d931e8c | 2011-11-09 13:17:16 -0800 | [diff] [blame] | 27 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 28 | CREDENTIALS = { |
Gaurav Shah | 52e1040 | 2011-04-04 15:42:58 -0700 | [diff] [blame] | 29 | '$mockowner': ['mockowner.test.account@gmail.com', 'perfsmurf'], |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 30 | '$default': ['performance.test.account@gmail.com', 'perfsmurf'], |
Chris Masone | 7585036 | 2011-01-04 11:37:22 -0800 | [diff] [blame] | 31 | '$apps': ['performance.test.account@googleapps.com', 'perfsmurf'], |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 32 | '$backdoor': ['chronos@gmail.com', 'chronos'], |
| 33 | } |
| 34 | |
Frank Swiderski | 52653c3 | 2010-05-26 17:40:47 -0700 | [diff] [blame] | 35 | # TODO(fes): With the switch to ecryptfs, the cryptohome device is no longer |
| 36 | # static--it includes a system-specific hash of the username whose vault is |
| 37 | # mounted. seano points out that this is no longer a constant, and we may want |
| 38 | # to change the way tests dependent on this value work. |
Frank Swiderski | 9fa0d35 | 2010-05-27 14:06:00 -0700 | [diff] [blame] | 39 | CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$' |
Chris Masone | 963c9c2 | 2010-07-19 16:50:59 -0700 | [diff] [blame] | 40 | CRYPTOHOME_INCOGNITO = 'guestfs' |
Chris Masone | 93e65d0 | 2011-03-10 07:22:21 -0800 | [diff] [blame] | 41 | CRYPTOHOME_MOUNT_PT = USER_DATA_DIR + '/user' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 42 | |
Ken Mixter | e1fc460 | 2010-09-23 19:26:12 -0700 | [diff] [blame] | 43 | CRYPTOHOMED_LOG = '/var/log/cryptohomed.log' |
| 44 | |
Dale Curtis | 3ff9888 | 2011-05-11 16:39:53 -0700 | [diff] [blame] | 45 | # Directories to copy out of cryptohome, relative to CRYPTOHOME_MOUNT_PT. |
| 46 | CRYPTOHOME_DIRS_TO_RECOVER = ['crash', 'log'] |
| 47 | |
Chris Masone | 761922b | 2012-02-03 14:34:24 -0800 | [diff] [blame^] | 48 | DISABLE_BROWSER_RESTART_MAGIC_FILE = '/var/run/disable_chrome_restart' |
Chris Masone | 105706e | 2011-04-29 14:37:11 -0700 | [diff] [blame] | 49 | DEFAULT_OWNERSHIP_TIMEOUT = 300 # Ownership is an inherently random process. |
Daniel Erat | e98b668 | 2010-03-26 09:02:52 -0700 | [diff] [blame] | 50 | |
Zdenek Behan | 3fa0580 | 2011-02-01 20:40:39 +0100 | [diff] [blame] | 51 | FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/' |
| 52 | |
Chris Masone | 32ca7d2 | 2011-03-01 09:53:27 -0800 | [diff] [blame] | 53 | KEYGEN = 'keygen' |
| 54 | |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 55 | LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in' |
| 56 | |
Chris Masone | 93e65d0 | 2011-03-10 07:22:21 -0800 | [diff] [blame] | 57 | LOGIN_PROFILE = USER_DATA_DIR + '/Default' |
Chris Masone | 2512a5f | 2010-07-26 11:37:20 -0700 | [diff] [blame] | 58 | LOGIN_SERVICE = 'gaia' |
| 59 | LOGIN_ERROR = 'Error=BadAuthentication' |
David James | d51ac9c | 2011-09-10 00:45:24 -0700 | [diff] [blame] | 60 | LOGIN_PROMPT_VISIBLE_MAGIC_FILE = '/tmp/uptime-login-prompt-visible' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 61 | LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem' |
Sean O | 267c00b | 2010-08-31 15:54:55 +0200 | [diff] [blame] | 62 | |
Chris Masone | 105706e | 2011-04-29 14:37:11 -0700 | [diff] [blame] | 63 | MOCK_OWNER_CERT = 'mock_owner_cert.pem' |
| 64 | MOCK_OWNER_KEY = 'mock_owner_private.key' |
| 65 | MOCK_OWNER_POLICY = 'mock_owner.policy' |
| 66 | |
Chris Masone | 8ded33d | 2011-07-18 10:56:12 -0700 | [diff] [blame] | 67 | NETWORK_MANAGER = 'flimflam' |
| 68 | |
Chris Sosa | ed8013a | 2012-01-24 10:35:31 -0800 | [diff] [blame] | 69 | ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 70 | |
Gaurav Shah | 52e1040 | 2011-04-04 15:42:58 -0700 | [diff] [blame] | 71 | OWNER_KEY_FILE = WHITELIST_DIR + '/owner.key' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 72 | |
Chris Masone | 7534021 | 2011-07-28 13:56:09 -0700 | [diff] [blame] | 73 | PORTAL_CHECK_URL = '/generate_204' |
Chris Sosa | ed8013a | 2012-01-24 10:35:31 -0800 | [diff] [blame] | 74 | PROCESS_LOGIN_URL = '/accounts/ProcessServiceLogin' |
Chris Masone | 7534021 | 2011-07-28 13:56:09 -0700 | [diff] [blame] | 75 | |
Chris Sosa | ed8013a | 2012-01-24 10:35:31 -0800 | [diff] [blame] | 76 | SERVICE_LOGIN_URL = '/accounts/ServiceLogin' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 77 | SESSION_MANAGER = 'session_manager' |
Chris Masone | 0d55e68 | 2011-02-01 10:24:37 -0800 | [diff] [blame] | 78 | SESSION_MANAGER_LOG = '/var/log/session_manager' |
Chris Masone | bbd576f | 2011-04-04 11:40:11 -0700 | [diff] [blame] | 79 | SIGNED_POLICY_FILE = WHITELIST_DIR + '/policy' |
Chris Masone | 7585036 | 2011-01-04 11:37:22 -0800 | [diff] [blame] | 80 | SPECIAL_CASE_DOMAIN = 'gmail.com' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 81 | |
Chris Sosa | ed8013a | 2012-01-24 10:35:31 -0800 | [diff] [blame] | 82 | TOKEN_AUTH_URL = '/accounts/TokenAuth' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 83 | |
| 84 | UI_LOG = '/var/log/ui/ui.LATEST' |
Sean O | 267c00b | 2010-08-31 15:54:55 +0200 | [diff] [blame] | 85 | UPDATE_ENGINE_LOG = '/var/log/update_engine.log' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 86 | |
| 87 | WINDOW_MANAGER = 'chromeos-wm' |
Gaurav Shah | 01dd4fb | 2011-08-25 15:08:42 -0700 | [diff] [blame] | 88 | |
| 89 | PKCS11_INIT_MAGIC_FILE = '/home/chronos/user/.tpm/.isinitialized' |
Scott James Remnant | a4f6858 | 2011-11-07 16:25:32 -0800 | [diff] [blame] | 90 | |
| 91 | RESOLV_CONF_FILE = '/etc/resolv.conf' |
| 92 | |
| 93 | FAKE_ROOT_CA_DIR = '/etc/fake_root_ca' |
| 94 | FAKE_NSSDB_DIR = FAKE_ROOT_CA_DIR + '/nssdb' |