tor  0.4.2.0-alpha-dev
setuid.h
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
11 #ifndef TOR_SETUID_H
12 #define TOR_SETUID_H
13 
14 int have_capability_support(void);
15 
17 #define SWITCH_ID_KEEP_BINDLOW (1<<0)
18 
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) */
int switch_id(const char *user, unsigned flags)
Definition: setuid.c:230
int have_capability_support(void)
Definition: setuid.c:149