tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

setuid.h (632B)


      1 /* Copyright (c) 2003-2004, Roger Dingledine
      2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
      3 * Copyright (c) 2007-2021, The Tor Project, Inc. */
      4 /* See LICENSE for licensing information */
      5 
      6 /**
      7 * \file setuid.h
      8 * \brief Header for setuid.c
      9 **/
     10 
     11 #ifndef TOR_SETUID_H
     12 #define TOR_SETUID_H
     13 
     14 int have_capability_support(void);
     15 
     16 /** Flag for switch_id; see switch_id() for documentation */
     17 #define SWITCH_ID_KEEP_BINDLOW    (1<<0)
     18 /** Flag for switch_id; see switch_id() for documentation */
     19 #define SWITCH_ID_WARN_IF_NO_CAPS (1<<1)
     20 int switch_id(const char *user, unsigned flags);
     21 
     22 #endif /* !defined(TOR_SETUID_H) */