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

Unified 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: Test checkperms changs Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/safe_browsing/mach_o/Makefile
diff --git a/chrome/test/data/safe_browsing/mach_o/Makefile b/chrome/test/data/safe_browsing/mach_o/Makefile
index faa2fecaeabc10674f93994289ca8f7b82741afb..7f30772a5d7283d436bc46f66e8e207c731e0548 100644
--- a/chrome/test/data/safe_browsing/mach_o/Makefile
+++ b/chrome/test/data/safe_browsing/mach_o/Makefile
@@ -57,3 +57,48 @@ signedexecutablefat: executablefat codesign.keychain
$(PWD)/codesign.keychain
codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
$@ --all-architectures
+
+.PHONY: test-bundle.app
+test-bundle.app: signedexecutablefat libsigned64.dylib executable32
+ ditto base-bundle.app $@
+ ditto $< $@/Contents/MacOS/test-bundle
+ ditto $(word 2,$^) $@/Contents/Frameworks/$(word 2,$^)
+ ditto $(word 3,$^) $@/Contents/Resources/$(word 3,$^)
+ security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
+ $(PWD)/codesign.keychain
+ codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
+ $@ --all-architectures --resource-rules ResourceRules
+
+.PHONY: modified-bundle.app
+modified-bundle.app: test-bundle.app codesign.cfg lib32.dylib executable64
+ ditto $< $@
+ ditto $(word 2,$^) $@/Contents/Resources/$(word 2,$^)
+ ditto $(word 3,$^) $@/Contents/Frameworks/libsigned64.dylib
+ ditto $(word 4,$^) $@/Contents/Resources/executable32
+ echo "foo" >> $@/Contents/Resources/Base.lproj/MainMenu.nib
+ security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
+ $(PWD)/codesign.keychain
+ codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
+ $@/Contents/Resources/Base.lproj/MainMenu.nib
+
+.PHONY: modified-bundle-and-exec.app
+modified-bundle-and-exec.app: test-bundle.app codesign.cfg lib32.dylib \
+ executable64
+ ditto $< $@
+ ditto $(word 2,$^) $@/Contents/Resources/$(word 2,$^)
+ ditto $(word 3,$^) $@/Contents/Frameworks/libsigned64.dylib
+ ditto $(word 4,$^) $@/Contents/Resources/executable32
+ printf '\x31' | dd bs=1 seek=8097 count=1 conv=notrunc \
+ of=$@/Contents/MacOS/test-bundle
+
+.PHONY: modified-main-exec32.app
+modified-main-exec32.app: test-bundle.app
+ ditto $< $@
+ printf '\x31' | dd bs=1 seek=8097 count=1 conv=notrunc \
+ of=$@/Contents/MacOS/test-bundle
Robert Sesek 2015/10/08 19:20:06 nit: something's off about this line (80 cols)
Greg K 2015/10/09 17:12:01 Yes, that got messed up because Makefiles use real
+
+.PHONY: modified-main-exec64.app
+modified-main-exec64.app: test-bundle.app
+ ditto $< $@
+ printf '\x31' | dd bs=1 seek=24448 count=1 conv=notrunc \
+ of=$@/Contents/MacOS/test-bundle

Powered by Google App Engine
This is Rietveld 408576698