xref: /freebsd/contrib/mandoc/test-sandbox_init.c (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1 #include <sandbox.h>
2 
3 int
4 main(void)
5 {
6 	char	*ep;
7 	int	 rc;
8 
9 	rc = sandbox_init(kSBXProfileNoInternet, SANDBOX_NAMED, &ep);
10 	if (-1 == rc)
11 		sandbox_free_error(ep);
12 	return(-1 == rc);
13 }
14