Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: chrome/installer/mac/sign_app.sh.in

Issue 2738053007: Activate keychain reauthorization. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -p 1 #!/bin/bash -p
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Using codesign, sign the application. After signing, the signatures on the 7 # Using codesign, sign the application. After signing, the signatures on the
8 # inner bundle components are verified, and the application's own signature is 8 # inner bundle components are verified, and the application's own signature is
9 # verified. Inner bundle components are expected to be signed before this 9 # verified. Inner bundle components are expected to be signed before this
10 # script is called. See sign_versioned_dir.sh. 10 # script is called. See sign_versioned_dir.sh.
(...skipping 29 matching lines...) Expand all
40 versioned_dir="${app_path}/Contents/Versions/@VERSION@" 40 versioned_dir="${app_path}/Contents/Versions/@VERSION@"
41 41
42 browser_app="${app_path}" 42 browser_app="${app_path}"
43 framework="${versioned_dir}/@MAC_PRODUCT_NAME@ Framework.framework" 43 framework="${versioned_dir}/@MAC_PRODUCT_NAME@ Framework.framework"
44 notification_service="${framework}/XPCServices/AlertNotificationService.xpc" 44 notification_service="${framework}/XPCServices/AlertNotificationService.xpc"
45 crashpad_handler="${framework}/Helpers/crashpad_handler" 45 crashpad_handler="${framework}/Helpers/crashpad_handler"
46 helper_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper.app" 46 helper_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper.app"
47 47
48 requirement_string="\ 48 requirement_string="\
49 designated => \ 49 designated => \
50 (identifier \"com.google.Chrome\" or identifier \"com.google.Chrome.canary\") \ 50 (identifier \"com.google.Chrome\" or identifier \"com.google.Chrome.canary\") \
Mark Mentovai 2017/03/10 00:56:46 Since we’ve got to do the reauthorization now anyw
Greg K 2017/03/10 18:06:29 Done.
51 and (certificate leaf = H\"85cee8254216185620ddc8851c7a9fc4dfe120ef\" or \ 51 and (certificate leaf = H\"85cee8254216185620ddc8851c7a9fc4dfe120ef\" or \
52 certificate leaf = H\"34f0bdf7f87d4f3a955862c351472e52250e4c2b\") \ 52 certificate leaf = H\"c9a99324ca3fcb23dbcc36bd5fd4f9753305130a\") \
53 " 53 "
54 54
55 enforcement_flags="restrict" 55 enforcement_flags="restrict"
56 56
57 codesign --sign "${codesign_id}" --keychain "${codesign_keychain}" \ 57 codesign --sign "${codesign_id}" --keychain "${codesign_keychain}" \
58 "${browser_app}" --resource-rules "${browser_app_rules}" \ 58 "${browser_app}" --resource-rules "${browser_app_rules}" \
59 -r="${requirement_string}" --options "${enforcement_flags}" 59 -r="${requirement_string}" --options "${enforcement_flags}"
60 60
61 # Show the signature. 61 # Show the signature.
62 codesign --display -r- -vvvvvv "${browser_app}" 62 codesign --display -r- -vvvvvv "${browser_app}"
(...skipping 17 matching lines...) Expand all
80 80
81 cleanup() { 81 cleanup() {
82 set +e 82 set +e
83 rm -rf "${temp_dir}" 83 rm -rf "${temp_dir}"
84 } 84 }
85 trap cleanup EXIT 85 trap cleanup EXIT
86 86
87 temp_browser_app="${temp_dir}/$(basename "${browser_app}")" 87 temp_browser_app="${temp_dir}/$(basename "${browser_app}")"
88 rsync -a "${browser_app}/" "${temp_browser_app}" 88 rsync -a "${browser_app}/" "${temp_browser_app}"
89 spctl --assess -vv "${temp_browser_app}" 89 spctl --assess -vv "${temp_browser_app}"
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698