upstream: Fix debug logging of user specific delay. Patch from
[openssh.git] / sandbox-null.c
blob6055eb86aa734e7de03eb58d2f926fe4188f627d
1 /* $OpenBSD$ */
2 /*
3 * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include "includes.h"
20 #ifdef SANDBOX_NULL
22 #include <sys/types.h>
24 #include <errno.h>
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include <unistd.h>
31 #include "log.h"
32 #include "ssh-sandbox.h"
33 #include "xmalloc.h"
35 /* dummy sandbox */
37 struct ssh_sandbox {
38 int junk;
41 struct ssh_sandbox *
42 ssh_sandbox_init(struct monitor *monitor)
44 struct ssh_sandbox *box;
47 * Strictly, we don't need to maintain any state here but we need
48 * to return non-NULL to satisfy the API.
50 box = xcalloc(1, sizeof(*box));
51 return box;
54 void
55 ssh_sandbox_child(struct ssh_sandbox *box)
57 /* Nothing to do here */
60 #endif /* SANDBOX_NULL */