]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_codesigning/lib/cskernel.cpp
Security-58286.60.28.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / lib / cskernel.cpp
index c4d579f731a48efe28b7e233fce1fe790fad6782..7595bd5207aeae6af6840c9c0bdde5f0ba3e798d 100644 (file)
@@ -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);
@@ -110,6 +111,9 @@ SecCode *KernelCode::locateGuest(CFDictionaryRef attributes)
        }
        
        return (new ProcessCode(pid, audit, diskRep))->retain();
+#else
+    MacOSError::throwMe(errSecCSUnimplemented);
+#endif
 }