1225825Sdes/* $OpenBSD$ */ 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 18225825Sdes#include "includes.h" 19225825Sdes 20225825Sdes#ifdef SANDBOX_NULL 21225825Sdes 22225825Sdes#include <sys/types.h> 23225825Sdes 24225825Sdes#include <errno.h> 25225825Sdes#include <stdarg.h> 26225825Sdes#include <stdio.h> 27225825Sdes#include <stdlib.h> 28225825Sdes#include <string.h> 29225825Sdes#include <unistd.h> 30225825Sdes 31225825Sdes#include "log.h" 32225825Sdes#include "ssh-sandbox.h" 33225825Sdes#include "xmalloc.h" 34225825Sdes 35225825Sdes/* dummy sandbox */ 36225825Sdes 37225825Sdesstruct ssh_sandbox { 38225825Sdes int junk; 39225825Sdes}; 40225825Sdes 41225825Sdesstruct ssh_sandbox * 42225825Sdesssh_sandbox_init(void) 43225825Sdes{ 44225825Sdes struct ssh_sandbox *box; 45225825Sdes 46225825Sdes /* 47225825Sdes * Strictly, we don't need to maintain any state here but we need 48225825Sdes * to return non-NULL to satisfy the API. 49225825Sdes */ 50225825Sdes box = xcalloc(1, sizeof(*box)); 51225825Sdes return box; 52225825Sdes} 53225825Sdes 54225825Sdesvoid 55225825Sdesssh_sandbox_child(struct ssh_sandbox *box) 56225825Sdes{ 57225825Sdes /* Nothing to do here */ 58225825Sdes} 59225825Sdes 60225825Sdesvoid 61225825Sdesssh_sandbox_parent_finish(struct ssh_sandbox *box) 62225825Sdes{ 63225825Sdes free(box); 64225825Sdes} 65225825Sdes 66225825Sdesvoid 67225825Sdesssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) 68225825Sdes{ 69225825Sdes /* Nothing to do here */ 70225825Sdes} 71225825Sdes 72225825Sdes#endif /* SANDBOX_NULL */ 73