(root)/
man-db-2.12.0/
lib/
sandbox.h
       1  /*
       2   * sandbox.h: Interface to process sandboxing
       3   *
       4   * Copyright (C) 2017 Colin Watson.
       5   *
       6   * This file is part of man-db.
       7   *
       8   * man-db is free software; you can redistribute it and/or modify it
       9   * under the terms of the GNU General Public License as published by
      10   * the Free Software Foundation; either version 2 of the License, or
      11   * (at your option) any later version.
      12   *
      13   * man-db is distributed in the hope that it will be useful, but
      14   * WITHOUT ANY WARRANTY; without even the implied warranty of
      15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16   * GNU General Public License for more details.
      17   *
      18   * You should have received a copy of the GNU General Public License
      19   * along with man-db; if not, write to the Free Software Foundation,
      20   * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      21   */
      22  
      23  #ifndef MAN_SANDBOX_H
      24  #define MAN_SANDBOX_H
      25  
      26  struct man_sandbox;
      27  typedef struct man_sandbox man_sandbox;
      28  
      29  extern man_sandbox *sandbox_init (void);
      30  
      31  /* These functions take a man_sandbox * argument, but have more generic
      32   * types suitable for use with pipecmd_pre_exec.
      33   */
      34  extern void sandbox_load (void *data);
      35  extern void sandbox_load_permissive (void *data);
      36  extern void sandbox_free (void *data);
      37  
      38  #endif /* MAN_SANDBOX_H */