2 fb1a36c0 2022-01-09 op * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
4 fb1a36c0 2022-01-09 op * Permission to use, copy, modify, and distribute this software for any
5 fb1a36c0 2022-01-09 op * purpose with or without fee is hereby granted, provided that the above
6 fb1a36c0 2022-01-09 op * copyright notice and this permission notice appear in all copies.
8 fb1a36c0 2022-01-09 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 fb1a36c0 2022-01-09 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 fb1a36c0 2022-01-09 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 fb1a36c0 2022-01-09 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 fb1a36c0 2022-01-09 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 fb1a36c0 2022-01-09 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 fb1a36c0 2022-01-09 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 bbcba3ed 2022-01-10 op #include "compat.h"
19 fb1a36c0 2022-01-09 op #include "log.h"
20 fb1a36c0 2022-01-09 op #include "sandbox.h"
22 fb1a36c0 2022-01-09 op #ifdef __OpenBSD__
24 fb1a36c0 2022-01-09 op #include <unistd.h>
27 fb1a36c0 2022-01-09 op sandbox_main(void)
33 fb1a36c0 2022-01-09 op sandbox_listener(void)
39 fb1a36c0 2022-01-09 op sandbox_client(void)
45 fb1a36c0 2022-01-09 op #warning "No sandbox available for this OS"
48 fb1a36c0 2022-01-09 op sandbox_main(void)
50 fb1a36c0 2022-01-09 op log_warnx("No sandbox available for this os");
55 fb1a36c0 2022-01-09 op sandbox_listener(void)
61 fb1a36c0 2022-01-09 op sandbox_client(void)