X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..bf028f67fd3bb2266df81b80fb6f25a77112e308:/OSX/libsecurity_codesigning/lib/cskernel.cpp?ds=inline diff --git a/OSX/libsecurity_codesigning/lib/cskernel.cpp b/OSX/libsecurity_codesigning/lib/cskernel.cpp index c4d579f7..0d1c4852 100644 --- a/OSX/libsecurity_codesigning/lib/cskernel.cpp +++ b/OSX/libsecurity_codesigning/lib/cskernel.cpp @@ -76,6 +76,7 @@ KernelStaticCode::KernelStaticCode() // SecCode *KernelCode::locateGuest(CFDictionaryRef attributes) { +#if TARGET_OS_OSX CFNumberRef pidNumber = NULL; CFDataRef auditData = NULL; cfscan(attributes, "{%O=%NO}", kSecGuestAttributePid, &pidNumber); @@ -105,11 +106,14 @@ SecCode *KernelCode::locateGuest(CFDictionaryRef attributes) MacOSError::throwMe(errSecCSInvalidAttributeValues); try { - diskRep = new PidDiskRep(pid, infoPlist); + diskRep = new PidDiskRep(pid, audit, infoPlist); } catch (...) { } } return (new ProcessCode(pid, audit, diskRep))->retain(); +#else + MacOSError::throwMe(errSecCSUnimplemented); +#endif }