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