xref: /dflybsd-src/crypto/openssh/ssh-sandbox.h (revision 36e94dc5bac047676e52d6d94a07db1b31c653e3)
11c188a7fSPeter Avalos /* $OpenBSD: ssh-sandbox.h,v 1.1 2011/06/23 09:34:13 djm Exp $ */
21c188a7fSPeter Avalos /*
31c188a7fSPeter Avalos  * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
41c188a7fSPeter Avalos  *
51c188a7fSPeter Avalos  * Permission to use, copy, modify, and distribute this software for any
61c188a7fSPeter Avalos  * purpose with or without fee is hereby granted, provided that the above
71c188a7fSPeter Avalos  * copyright notice and this permission notice appear in all copies.
81c188a7fSPeter Avalos  *
91c188a7fSPeter Avalos  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
101c188a7fSPeter Avalos  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
111c188a7fSPeter Avalos  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
121c188a7fSPeter Avalos  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
131c188a7fSPeter Avalos  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
141c188a7fSPeter Avalos  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
151c188a7fSPeter Avalos  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
161c188a7fSPeter Avalos  */
171c188a7fSPeter Avalos 
18*36e94dc5SPeter Avalos struct monitor;
191c188a7fSPeter Avalos struct ssh_sandbox;
201c188a7fSPeter Avalos 
21*36e94dc5SPeter Avalos struct ssh_sandbox *ssh_sandbox_init(struct monitor *);
221c188a7fSPeter Avalos void ssh_sandbox_child(struct ssh_sandbox *);
231c188a7fSPeter Avalos void ssh_sandbox_parent_finish(struct ssh_sandbox *);
241c188a7fSPeter Avalos void ssh_sandbox_parent_preauth(struct ssh_sandbox *, pid_t);
25