1185377Ssam/* $OpenBSD$ */
2185377Ssam/*
3185377Ssam * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
4185377Ssam *
5185377Ssam * Permission to use, copy, modify, and distribute this software for any
6185377Ssam * purpose with or without fee is hereby granted, provided that the above
7185377Ssam * copyright notice and this permission notice appear in all copies.
8185377Ssam *
9185377Ssam * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10185377Ssam * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11185377Ssam * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12185377Ssam * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13185377Ssam * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14185377Ssam * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15185377Ssam * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16185377Ssam */
17203158Srpaulo
18185377Ssam#include "includes.h"
19185377Ssam
20185377Ssam#ifdef SANDBOX_NULL
21185377Ssam
22185377Ssam#include <sys/types.h>
23185377Ssam
24185377Ssam#include <errno.h>
25185377Ssam#include <stdarg.h>
26185377Ssam#include <stdio.h>
27185377Ssam#include <stdlib.h>
28185377Ssam#include <string.h>
29185377Ssam#include <unistd.h>
30224512Sadrian
31224512Sadrian#include "log.h"
32224512Sadrian#include "ssh-sandbox.h"
33224512Sadrian#include "xmalloc.h"
34224512Sadrian
35224512Sadrian/* dummy sandbox */
36224512Sadrian
37224512Sadrianstruct ssh_sandbox {
38224512Sadrian	int junk;
39224512Sadrian};
40224512Sadrian
41224512Sadrianstruct ssh_sandbox *
42224512Sadrianssh_sandbox_init(struct monitor *monitor)
43224512Sadrian{
44224512Sadrian	struct ssh_sandbox *box;
45224512Sadrian
46224512Sadrian	/*
47224512Sadrian	 * Strictly, we don't need to maintain any state here but we need
48224512Sadrian	 * to return non-NULL to satisfy the API.
49224512Sadrian	 */
50224512Sadrian	box = xcalloc(1, sizeof(*box));
51224512Sadrian	return box;
52224512Sadrian}
53224512Sadrian
54224512Sadrianvoid
55224512Sadrianssh_sandbox_child(struct ssh_sandbox *box)
56224512Sadrian{
57224512Sadrian	/* Nothing to do here */
58224512Sadrian}
59224512Sadrian
60224512Sadrianvoid
61224512Sadrianssh_sandbox_parent_finish(struct ssh_sandbox *box)
62224512Sadrian{
63224512Sadrian	free(box);
64224512Sadrian}
65224512Sadrian
66224512Sadrianvoid
67224512Sadrianssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid)
68224512Sadrian{
69224512Sadrian	/* Nothing to do here */
70234747Sadrian}
71234747Sadrian
72234747Sadrian#endif /* SANDBOX_NULL */
73234747Sadrian