setuid.h 545 B

1234567891011121314151617
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #ifndef TOR_SETUID_H
  6. #define TOR_SETUID_H
  7. int have_capability_support(void);
  8. /** Flag for switch_id; see switch_id() for documentation */
  9. #define SWITCH_ID_KEEP_BINDLOW (1<<0)
  10. /** Flag for switch_id; see switch_id() for documentation */
  11. #define SWITCH_ID_WARN_IF_NO_CAPS (1<<1)
  12. int switch_id(const char *user, unsigned flags);
  13. #endif