Tor
0.4.7.0-alpha-dev
lib
process
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-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) */
have_capability_support
int have_capability_support(void)
Definition:
setuid.c:149
switch_id
int switch_id(const char *user, unsigned flags)
Definition:
setuid.c:230
Generated by
1.9.1