xref: /freebsd/crypto/openssh/ssh-sandbox.h (revision 6cec9cad762b6476313fb1f8e931a1647822db6b)
1e146993eSDag-Erling Smørgrav /* $OpenBSD: ssh-sandbox.h,v 1.1 2011/06/23 09:34:13 djm Exp $ */
2e146993eSDag-Erling Smørgrav /*
3e146993eSDag-Erling Smørgrav  * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
4e146993eSDag-Erling Smørgrav  *
5e146993eSDag-Erling Smørgrav  * Permission to use, copy, modify, and distribute this software for any
6e146993eSDag-Erling Smørgrav  * purpose with or without fee is hereby granted, provided that the above
7e146993eSDag-Erling Smørgrav  * copyright notice and this permission notice appear in all copies.
8e146993eSDag-Erling Smørgrav  *
9e146993eSDag-Erling Smørgrav  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10e146993eSDag-Erling Smørgrav  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11e146993eSDag-Erling Smørgrav  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12e146993eSDag-Erling Smørgrav  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13e146993eSDag-Erling Smørgrav  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14e146993eSDag-Erling Smørgrav  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15e146993eSDag-Erling Smørgrav  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16e146993eSDag-Erling Smørgrav  */
17e146993eSDag-Erling Smørgrav 
18*f7167e0eSDag-Erling Smørgrav struct monitor;
19e146993eSDag-Erling Smørgrav struct ssh_sandbox;
20e146993eSDag-Erling Smørgrav 
21*f7167e0eSDag-Erling Smørgrav struct ssh_sandbox *ssh_sandbox_init(struct monitor *);
22e146993eSDag-Erling Smørgrav void ssh_sandbox_child(struct ssh_sandbox *);
23e146993eSDag-Erling Smørgrav void ssh_sandbox_parent_finish(struct ssh_sandbox *);
24e146993eSDag-Erling Smørgrav void ssh_sandbox_parent_preauth(struct ssh_sandbox *, pid_t);
25