Is there a good way to debug an issue with TCC / PPPC policy and Microsoft Update?
I've implemented the PPPC Policy from @pbowden and associated update script. However for a subset of machines the "msupdate --config" step never returns any results and the rest is ignored. I would guess this is related to PPPC policy and ability to send Apple events.
I've tried to look at TCC logs and get the following:
2020-12-31 14:24:54.162632-0500 0xf70f98 Error 0x109e829 660 0 tccd: [com.apple.TCC:access] Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for accessing={identifier=com.microsoft.autoupdate.fba, pid=91467, auid=501, euid=501, binary_path=/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft Update Assistant.app/Contents/MacOS/Microsoft Update Assistant}, requesting={identifier=com.microsoft.autoupdate.fba, pid=91467, auid=501, euid=501, binary_path=/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft Update Assistant.app/Contents/MacOS/Microsoft Update Assistant}, 2020-12-31 14:24:54.162695-0500 0xf70f98 Default 0x109e829 660 0 tccd: [com.apple.TCC:access] target_executable_path_URL: file:///Applications/iTerm.app/Contents/MacOS/iTerm2 2020-12-31 14:24:54.163179-0500 0xf70b68 Error 0x1099aee 160 0 tccd: [com.apple.TCC:access] Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for accessing={identifier=com.microsoft.autoupdate.fba, pid=91467, auid=501, euid=501, binary_path=/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft Update Assistant.app/Contents/MacOS/Microsoft Update Assistant}, requesting={identifier=com.apple.appleeventsd, pid=570, auid=55, euid=55, binary_path=/System/Library/CoreServices/appleeventsd},
but this appears on machines that work and those that don't. Even manually running "msupdate --config" fails.
Other things I have tried:
- checking binary code signing signature (codesign -dr - <path>)
- updated PPC to include some additional Apple Events settings for jamf and com.microsoft.autoupdate.cli
Any thoughts on best way to track down what is blocking autoupdate?
