1225825Sdes/* $OpenBSD: ssh-sandbox.h,v 1.1 2011/06/23 09:34:13 djm Exp $ */ 2225825Sdes/* 3225825Sdes * Copyright (c) 2011 Damien Miller <djm@mindrot.org> 4225825Sdes * 5225825Sdes * Permission to use, copy, modify, and distribute this software for any 6225825Sdes * purpose with or without fee is hereby granted, provided that the above 7225825Sdes * copyright notice and this permission notice appear in all copies. 8225825Sdes * 9225825Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10225825Sdes * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11225825Sdes * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12225825Sdes * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13225825Sdes * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14225825Sdes * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15225825Sdes * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16225825Sdes */ 17225825Sdes 18262566Sdesstruct monitor; 19225825Sdesstruct ssh_sandbox; 20225825Sdes 21262566Sdesstruct ssh_sandbox *ssh_sandbox_init(struct monitor *); 22225825Sdesvoid ssh_sandbox_child(struct ssh_sandbox *); 23225825Sdesvoid ssh_sandbox_parent_finish(struct ssh_sandbox *); 24225825Sdesvoid ssh_sandbox_parent_preauth(struct ssh_sandbox *, pid_t); 25