santad: Start ignoring errSecCSInfoPlistFailed (-67030) (#98)

This commit is contained in:
Russell Hancox
2016-09-22 15:36:35 -04:00
committed by GitHub
parent 8d94324dd6
commit b360e782c6

View File

@@ -99,7 +99,14 @@
if ([self printerProxyWorkaround:binInfo]) return;
// Get codesigning info about the file.
MOLCodesignChecker *csInfo = [[MOLCodesignChecker alloc] initWithBinaryPath:binInfo.path];
NSError *csError;
MOLCodesignChecker *csInfo = [[MOLCodesignChecker alloc] initWithBinaryPath:binInfo.path
error:&csError];
// We specifically ignore CSInfoPlistFailed (-67030) as it sometimes appears spuriously
// when trying to validate a binary separately from its bundle.
if (csError && csError.code != errSecCSInfoPlistFailed) {
csInfo = nil;
}
// Actually make the decision.
SNTCachedDecision *cd = [self.policyProcessor decisionForFileInfo:binInfo