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

Side by Side Diff: chrome/test/data/safe_browsing/mach_o/Makefile

Issue 1363613004: Implement anonymous, opt-in, collection of OS X binary integrity incidents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ran git cl format Created 5 years, 1 month 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium 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 KEYCHAIN_PASSWORD=g0atMaster 5 KEYCHAIN_PASSWORD=g0atMaster
6 # This must match the commonName in codesign.cfg. 6 # This must match the commonName in codesign.cfg.
7 KEYCHAIN_IDENTITY=untrusted@goat.local 7 KEYCHAIN_IDENTITY=untrusted@goat.local
8 8
9 executable32: src.c 9 executable32: src.c
10 clang -m32 -o $@ $^ 10 clang -m32 -o $@ $^
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \ 50 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
51 $(PWD)/codesign.keychain 51 $(PWD)/codesign.keychain
52 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain $@ 52 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain $@
53 53
54 signedexecutablefat: executablefat codesign.keychain 54 signedexecutablefat: executablefat codesign.keychain
55 cp $< $@ 55 cp $< $@
56 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \ 56 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
57 $(PWD)/codesign.keychain 57 $(PWD)/codesign.keychain
58 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \ 58 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
59 $@ --all-architectures 59 $@ --all-architectures
60
61 .PHONY: test-bundle.app
62 test-bundle.app: signedexecutablefat libsigned64.dylib executable32
63 ditto base-bundle.app $@
64 ditto $< $@/Contents/MacOS/test-bundle
65 ditto $(word 2,$^) $@/Contents/Frameworks/$(word 2,$^)
66 ditto $(word 3,$^) $@/Contents/Resources/$(word 3,$^)
67 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
68 $(PWD)/codesign.keychain
69 codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
70 $@ --all-architectures --resource-rules ResourceRules
71
72 .PHONY: modified-bundle.app
73 modified-bundle.app: test-bundle.app lib32.dylib executable64
74 ditto $< $@
75 touch $@/Contents/Resources/codesign.cfg
76 ditto $(word 2,$^) $@/Contents/Frameworks/libsigned64.dylib
77 ditto $(word 3,$^) $@/Contents/Resources/executable32
78 echo "foo" >> $@/Contents/Resources/Base.lproj/MainMenu.nib
79 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
80 $(PWD)/codesign.keychain
81 codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
82 $@/Contents/Resources/Base.lproj/MainMenu.nib
83
84 .PHONY: modified-bundle-and-exec.app
85 modified-bundle-and-exec.app: test-bundle.app lib32.dylib executable64
86 ditto $< $@
87 touch $@/Contents/Resources/codesign.cfg
88 ditto $(word 2,$^) $@/Contents/Frameworks/libsigned64.dylib
89 ditto $(word 3,$^) $@/Contents/Resources/executable32
90 printf '\x31' | dd bs=1 seek=8097 count=1 conv=notrunc \
91 of=$@/Contents/MacOS/test-bundle
92
93 .PHONY: modified-main-exec32.app
94 modified-main-exec32.app: test-bundle.app
95 ditto $< $@
96 printf '\x31' | dd bs=1 seek=8097 count=1 conv=notrunc \
97 of=$@/Contents/MacOS/test-bundle
98
99 .PHONY: modified-main-exec64.app
100 modified-main-exec64.app: test-bundle.app
101 ditto $< $@
102 printf '\x31' | dd bs=1 seek=24448 count=1 conv=notrunc \
103 of=$@/Contents/MacOS/test-bundle
OLDNEW
« no previous file with comments | « chrome/common/safe_browsing/csd.proto ('k') | chrome/test/data/safe_browsing/mach_o/ResourceRules » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698