xref: /xnu-12377.81.4/tests/arm_mte_alias_restriction_helper.c (revision 043036a2b3718f7f0be807e2870f8f47d3fa0796)
1*043036a2SApple OSS Distributions #include <unistd.h>
2*043036a2SApple OSS Distributions 
3*043036a2SApple OSS Distributions int
main(int argc,char ** argv)4*043036a2SApple OSS Distributions main(int argc, char **argv)
5*043036a2SApple OSS Distributions {
6*043036a2SApple OSS Distributions 	/*
7*043036a2SApple OSS Distributions 	 * This is just a process signed in such a way that it should never be
8*043036a2SApple OSS Distributions 	 * allowed to receive aliases to tagged memory from elsewhere on the system.
9*043036a2SApple OSS Distributions 	 * The associated test will try to remap tagged memory into this process, and
10*043036a2SApple OSS Distributions 	 *  will die in the process.
11*043036a2SApple OSS Distributions 	 * sleep() so we eventually terminate too (and don't bother with anything
12*043036a2SApple OSS Distributions 	 *  fancy for synchronizing.)
13*043036a2SApple OSS Distributions 	 */
14*043036a2SApple OSS Distributions 	sleep(5);
15*043036a2SApple OSS Distributions 	return 0;
16*043036a2SApple OSS Distributions }
17