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