(root)/
man-db-2.12.0/
lib/
security.h
       1  /*
       2   * security.h: Interface to secure uid operations
       3   *
       4   * Copyright (C) 1990, 1991 John W. Eaton.
       5   * Copyright (C) 1994, 1995 Graeme W. Wilford. (Wilf.)
       6   * Copyright (C) 2001, 2002, 2004, 2008, 2010, 2011 Colin Watson.
       7   *
       8   * This file is part of man-db.
       9   *
      10   * man-db is free software; you can redistribute it and/or modify it
      11   * under the terms of the GNU General Public License as published by
      12   * the Free Software Foundation; either version 2 of the License, or
      13   * (at your option) any later version.
      14   *
      15   * man-db is distributed in the hope that it will be useful, but
      16   * WITHOUT ANY WARRANTY; without even the implied warranty of
      17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      18   * GNU General Public License for more details.
      19   *
      20   * You should have received a copy of the GNU General Public License
      21   * along with man-db; if not, write to the Free Software Foundation,
      22   * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      23   */
      24  
      25  #include <stdbool.h>
      26  #ifdef MAN_OWNER
      27  #  include <pwd.h>
      28  #endif /* MAN_OWNER */
      29  
      30  /* security.c */
      31  extern void drop_effective_privs (void);
      32  extern void regain_effective_privs (void);
      33  extern void drop_privs (void *data);
      34  extern void init_security (void);
      35  extern bool running_setuid (void);
      36  #ifdef MAN_OWNER
      37  extern struct passwd *get_man_owner (void);
      38  #endif /* MAN_OWNER */