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