1*5e3eaea3SApple OSS Distributions /* 2*5e3eaea3SApple OSS Distributions * Copyright (c) 2022 Apple Computer, Inc. All rights reserved. 3*5e3eaea3SApple OSS Distributions * 4*5e3eaea3SApple OSS Distributions * @APPLE_LICENSE_HEADER_START@ 5*5e3eaea3SApple OSS Distributions * 6*5e3eaea3SApple OSS Distributions * The contents of this file constitute Original Code as defined in and 7*5e3eaea3SApple OSS Distributions * are subject to the Apple Public Source License Version 1.1 (the 8*5e3eaea3SApple OSS Distributions * "License"). You may not use this file except in compliance with the 9*5e3eaea3SApple OSS Distributions * License. Please obtain a copy of the License at 10*5e3eaea3SApple OSS Distributions * http://www.apple.com/publicsource and read it before using this file. 11*5e3eaea3SApple OSS Distributions * 12*5e3eaea3SApple OSS Distributions * This Original Code and all software distributed under the License are 13*5e3eaea3SApple OSS Distributions * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER 14*5e3eaea3SApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 15*5e3eaea3SApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16*5e3eaea3SApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the 17*5e3eaea3SApple OSS Distributions * License for the specific language governing rights and limitations 18*5e3eaea3SApple OSS Distributions * under the License. 19*5e3eaea3SApple OSS Distributions * 20*5e3eaea3SApple OSS Distributions * @APPLE_LICENSE_HEADER_END@ 21*5e3eaea3SApple OSS Distributions */ 22*5e3eaea3SApple OSS Distributions 23*5e3eaea3SApple OSS Distributions #include <stdarg.h> 24*5e3eaea3SApple OSS Distributions #include <stdatomic.h> 25*5e3eaea3SApple OSS Distributions #include <os/overflow.h> 26*5e3eaea3SApple OSS Distributions #include <machine/atomic.h> 27*5e3eaea3SApple OSS Distributions #include <mach/vm_param.h> 28*5e3eaea3SApple OSS Distributions #include <mach/vm_map.h> 29*5e3eaea3SApple OSS Distributions #include <mach/shared_region.h> 30*5e3eaea3SApple OSS Distributions #include <vm/vm_kern.h> 31*5e3eaea3SApple OSS Distributions #include <kern/zalloc.h> 32*5e3eaea3SApple OSS Distributions #include <kern/kalloc.h> 33*5e3eaea3SApple OSS Distributions #include <kern/assert.h> 34*5e3eaea3SApple OSS Distributions #include <kern/locks.h> 35*5e3eaea3SApple OSS Distributions #include <kern/sched_prim.h> 36*5e3eaea3SApple OSS Distributions #include <kern/lock_rw.h> 37*5e3eaea3SApple OSS Distributions #include <libkern/libkern.h> 38*5e3eaea3SApple OSS Distributions #include <libkern/section_keywords.h> 39*5e3eaea3SApple OSS Distributions #include <libkern/coretrust/coretrust.h> 40*5e3eaea3SApple OSS Distributions #include <libkern/amfi/amfi.h> 41*5e3eaea3SApple OSS Distributions #include <pexpert/pexpert.h> 42*5e3eaea3SApple OSS Distributions #include <sys/vm.h> 43*5e3eaea3SApple OSS Distributions #include <sys/proc.h> 44*5e3eaea3SApple OSS Distributions #include <sys/codesign.h> 45*5e3eaea3SApple OSS Distributions #include <sys/code_signing.h> 46*5e3eaea3SApple OSS Distributions #include <uuid/uuid.h> 47*5e3eaea3SApple OSS Distributions #include <IOKit/IOBSD.h> 48*5e3eaea3SApple OSS Distributions 49