1*27b03b36SApple OSS Distributions // 2*27b03b36SApple OSS Distributions // KernelUtils.hpp 3*27b03b36SApple OSS Distributions // CoreEntitlements_kernel 4*27b03b36SApple OSS Distributions // 5*27b03b36SApple OSS Distributions // 6*27b03b36SApple OSS Distributions 7*27b03b36SApple OSS Distributions #pragma once 8*27b03b36SApple OSS Distributions 9*27b03b36SApple OSS Distributions #include "CoreEntitlements.h" 10*27b03b36SApple OSS Distributions #include <libkern/c++/OSPtr.h> 11*27b03b36SApple OSS Distributions #include <libkern/c++/OSDictionary.h> 12*27b03b36SApple OSS Distributions 13*27b03b36SApple OSS Distributions #ifndef CORE_ENTITLEMENTS_I_KNOW_WHAT_IM_DOING 14*27b03b36SApple OSS Distributions #error This is a private API, please consult with the Trusted Execution team before using this. Misusing these functions will lead to security issues. 15*27b03b36SApple OSS Distributions #endif 16*27b03b36SApple OSS Distributions 17*27b03b36SApple OSS Distributions /*! 18*27b03b36SApple OSS Distributions * @function CEQueryContextToOSDictionary 19*27b03b36SApple OSS Distributions * Private API, converts a query context into an OSDictionary that can be handed out to legacy users 20*27b03b36SApple OSS Distributions */ 21*27b03b36SApple OSS Distributions OSPtr<OSDictionary> CEQueryContextToOSDictionary(CEQueryContext_t entitlements); 22