setuid.h 603 B

12345678910111213141516171819202122
  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. /**
  6. * \file setuid.h
  7. * \brief Header for setuid.c
  8. **/
  9. #ifndef TOR_SETUID_H
  10. #define TOR_SETUID_H
  11. int have_capability_support(void);
  12. /** Flag for switch_id; see switch_id() for documentation */
  13. #define SWITCH_ID_KEEP_BINDLOW (1<<0)
  14. /** Flag for switch_id; see switch_id() for documentation */
  15. #define SWITCH_ID_WARN_IF_NO_CAPS (1<<1)
  16. int switch_id(const char *user, unsigned flags);
  17. #endif