summaryrefslogtreecommitdiff
path: root/sandbox-null.c
diff options
context:
space:
mode:
authordcashman <dcashman@google.com>2014-07-07 16:20:40 -0700
committerdcashman <dcashman@google.com>2014-07-07 16:20:40 -0700
commit6dd962236c57f327b92b0c8f09f649279980023c (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /sandbox-null.c
parent30b9ff3dd1a2663d017fea74adfbcd3da4aa2635 (diff)
Remove sshd.
This may require changes to other code, such as fastbootd, which relies on this service. sshd is not currently, used, however, so this change will force any such code to be changed. Bug: 11594902 Change-Id: I07e52008290dab5825be2ad062cbe730fa7dff71
Diffstat (limited to 'sandbox-null.c')
-rw-r--r--sandbox-null.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/sandbox-null.c b/sandbox-null.c
deleted file mode 100644
index 29fa9669..00000000
--- a/sandbox-null.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* $OpenBSD$ */
-/*
- * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include "includes.h"
-
-#ifdef SANDBOX_NULL
-
-#include <sys/types.h>
-
-#include <errno.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include "log.h"
-#include "ssh-sandbox.h"
-#include "xmalloc.h"
-
-/* dummy sandbox */
-
-struct ssh_sandbox {
- int junk;
-};
-
-struct ssh_sandbox *
-ssh_sandbox_init(void)
-{
- struct ssh_sandbox *box;
-
- /*
- * Strictly, we don't need to maintain any state here but we need
- * to return non-NULL to satisfy the API.
- */
- box = xcalloc(1, sizeof(*box));
- return box;
-}
-
-void
-ssh_sandbox_child(struct ssh_sandbox *box)
-{
- /* Nothing to do here */
-}
-
-void
-ssh_sandbox_parent_finish(struct ssh_sandbox *box)
-{
- free(box);
-}
-
-void
-ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid)
-{
- /* Nothing to do here */
-}
-
-#endif /* SANDBOX_NULL */