Closed xsscx closed 2 years ago
This Issue continues to cause Build Pipeline Issues for SRDC, see URL https://github.com/apple/security-research-device/issues/59
With Security Research Tools (SRT) 20C80, the file name extension is .cxbd.
Running make clean would do the right thing.
With later Releases of SRT, as shown in the Makefile, the file extension is .cxbd.signed
The Issue is Summarized in PR42 at URL https://github.com/apple/security-research-device/pull/42
The action of:
make clean
when using the Makefile from the ./example-cryptex/ at URL https://github.com/apple/security-research-device/blob/main/example-cryptex/Makefile contains:
rm -rf ${CRYPTEX_ROOT_DIR} ${CRYPTEX_DMG_NAME} ${CRYPTEX_ID}.cptx
yet the correct action is to:
rm -rf ${CRYPTEX_ROOT_DIR} ${CRYPTEX_DMG_NAME} ${CRYPTEX_ID}.cxbd.signed
That incorrect cleansing Issue may be seen as:
make clean
...
rm: /Users/xss/iphone11/com.example.cryptex.dstroot/usr: Permission denied
rm: /Users/xss/iphone11/com.example.cryptex.dstroot: Permission denied
rm: /Users/xss/iphone11/sdk-graft/
make: *** [clean] Error 1
That will Result with Questions containing keywords:
can't build IOKitKeysPrivate.h
A potential Workaround is to:
Step 1:
rm -rf com.example.cryptex.cxbd.signed com.example.cryptex.cxbd srd-universal-cryptex.dmg com.example.cryptex.dmg srd-universal-cryptex.dmg.backup com.example.cryptex.cxbd.signed com.example.cryptex.dstroot com.example.cryptex.cptx
Step 2: Modify Makefile and Remove:
rm -rf ${CRYPTEX_ROOT_DIR} ${CRYPTEX_DMG_NAME} ${CRYPTEX_ID}.cxbd
Adding:
rm -rf ${CRYPTEX_ROOT_DIR} ${CRYPTEX_DMG_NAME} ${CRYPTEX_ID}.cxbd ${CRYPTEX_ID}.cxbd.signed
21C39 | Readme.md Changes for troubleshooting
It was found that the troubleshooting instructions for cryptexctl contain in Readme.md can be optimized.
A suggested change to the Readme.md is shown below:
Remove: cryptexctl -v9 -d9 -ldt install --print-info ./com.example.cryptex.cxbd Add: cryptexctl -v4 -d4 install --variant=research --persist --print-info ./com.example.cryptex.cxbd.signed (21C39)
Then, then correct output is shown for cryptexctl -print-info as shown below:
Example Data Collector
cat srd-cryptex-troubleshooter.log
It was also found that the command line args -t is not shown when cryptexctl is run. Please consider documenting the -t arg.
Please consider making these changes to your Readme.md.
Commit: https://github.com/xsscx/srd/commit/8283d85814afa34fd53b8ba014a02efeb7695f93 Report: https://github.com/apple/security-research-device/issues/40