OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # The names of expected mount-points, devices, magic files, etc on chrome os. | 5 # The names of expected mount-points, devices, magic files, etc on chrome os. |
6 | 6 |
7 # Constants used by other constants. | 7 # Constants used by other constants. |
8 USER_DATA_DIR = '/home/chronos' | 8 USER_DATA_DIR = '/home/chronos' |
9 WHITELIST_DIR = '/var/lib/whitelist' | 9 WHITELIST_DIR = '/var/lib/whitelist' |
10 | 10 |
11 | 11 |
(...skipping 20 matching lines...) Expand all Loading... |
32 # static--it includes a system-specific hash of the username whose vault is | 32 # static--it includes a system-specific hash of the username whose vault is |
33 # mounted. seano points out that this is no longer a constant, and we may want | 33 # mounted. seano points out that this is no longer a constant, and we may want |
34 # to change the way tests dependent on this value work. | 34 # to change the way tests dependent on this value work. |
35 CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$' | 35 CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$' |
36 CRYPTOHOME_INCOGNITO = 'guestfs' | 36 CRYPTOHOME_INCOGNITO = 'guestfs' |
37 CRYPTOHOME_MOUNT_PT = USER_DATA_DIR + '/user' | 37 CRYPTOHOME_MOUNT_PT = USER_DATA_DIR + '/user' |
38 | 38 |
39 CRYPTOHOMED_LOG = '/var/log/cryptohomed.log' | 39 CRYPTOHOMED_LOG = '/var/log/cryptohomed.log' |
40 | 40 |
41 DISABLE_BROWSER_RESTART_MAGIC_FILE = '/tmp/disable_chrome_restart' | 41 DISABLE_BROWSER_RESTART_MAGIC_FILE = '/tmp/disable_chrome_restart' |
| 42 DEFAULT_OWNERSHIP_TIMEOUT = 300 # Ownership is an inherently random process. |
42 | 43 |
43 FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/' | 44 FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/' |
44 | 45 |
45 KEYGEN = 'keygen' | 46 KEYGEN = 'keygen' |
46 | 47 |
47 LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in' | 48 LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in' |
48 | 49 |
49 LOGIN_PROFILE = USER_DATA_DIR + '/Default' | 50 LOGIN_PROFILE = USER_DATA_DIR + '/Default' |
50 LOGIN_SERVICE = 'gaia' | 51 LOGIN_SERVICE = 'gaia' |
51 LOGIN_ERROR = 'Error=BadAuthentication' | 52 LOGIN_ERROR = 'Error=BadAuthentication' |
52 LOGIN_PROMPT_READY_MAGIC_FILE = '/tmp/uptime-login-prompt-ready' | 53 LOGIN_PROMPT_READY_MAGIC_FILE = '/tmp/uptime-login-prompt-ready' |
53 LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem' | 54 LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem' |
54 | 55 |
| 56 MOCK_OWNER_CERT = 'mock_owner_cert.pem' |
| 57 MOCK_OWNER_KEY = 'mock_owner_private.key' |
| 58 MOCK_OWNER_POLICY = 'mock_owner.policy' |
| 59 |
55 ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken' | 60 ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken' |
56 | 61 |
57 OWNER_KEY_FILE = WHITELIST_DIR + '/owner.key' | 62 OWNER_KEY_FILE = WHITELIST_DIR + '/owner.key' |
58 | 63 |
59 SESSION_MANAGER = 'session_manager' | 64 SESSION_MANAGER = 'session_manager' |
60 SESSION_MANAGER_LOG = '/var/log/session_manager' | 65 SESSION_MANAGER_LOG = '/var/log/session_manager' |
61 SIGNED_PREFERENCES_FILE = WHITELIST_DIR + '/preferences' | |
62 SIGNED_POLICY_FILE = WHITELIST_DIR + '/policy' | 66 SIGNED_POLICY_FILE = WHITELIST_DIR + '/policy' |
63 SPECIAL_CASE_DOMAIN = 'gmail.com' | 67 SPECIAL_CASE_DOMAIN = 'gmail.com' |
64 | 68 |
65 TOKEN_AUTH_URL = '/accounts/TokenAuth' | 69 TOKEN_AUTH_URL = '/accounts/TokenAuth' |
66 | 70 |
67 UI_LOG = '/var/log/ui/ui.LATEST' | 71 UI_LOG = '/var/log/ui/ui.LATEST' |
68 UPDATE_ENGINE_LOG = '/var/log/update_engine.log' | 72 UPDATE_ENGINE_LOG = '/var/log/update_engine.log' |
69 | 73 |
70 WINDOW_MANAGER = 'chromeos-wm' | 74 WINDOW_MANAGER = 'chromeos-wm' |
OLD | NEW |