117680Spst/* $OpenBSD: ssh-sandbox.h,v 1.1 2011/06/23 09:34:13 djm Exp $ */
239297Sfenner/*
317680Spst * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
417680Spst *
517680Spst * Permission to use, copy, modify, and distribute this software for any
617680Spst * purpose with or without fee is hereby granted, provided that the above
717680Spst * copyright notice and this permission notice appear in all copies.
817680Spst *
917680Spst * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1017680Spst * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1117680Spst * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1217680Spst * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1317680Spst * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1417680Spst * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1517680Spst * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1617680Spst */
1717680Spst
1817680Spststruct monitor;
1917680Spststruct ssh_sandbox;
2017680Spst
2117680Spststruct ssh_sandbox *ssh_sandbox_init(struct monitor *);
2217680Spstvoid ssh_sandbox_child(struct ssh_sandbox *);
2317680Spstvoid ssh_sandbox_parent_finish(struct ssh_sandbox *);
2417680Spstvoid ssh_sandbox_parent_preauth(struct ssh_sandbox *, pid_t);
25127668Sbms