aboutsummaryrefslogtreecommitdiff
path: root/src/lib/process/setuid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/process/setuid.h')
-rw-r--r--src/lib/process/setuid.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/process/setuid.h b/src/lib/process/setuid.h
new file mode 100644
index 0000000000..7d03e1f025
--- /dev/null
+++ b/src/lib/process/setuid.h
@@ -0,0 +1,22 @@
+/* Copyright (c) 2003-2004, Roger Dingledine
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2019, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file setuid.h
+ * \brief Header for setuid.c
+ **/
+
+#ifndef TOR_SETUID_H
+#define TOR_SETUID_H
+
+int have_capability_support(void);
+
+/** Flag for switch_id; see switch_id() for documentation */
+#define SWITCH_ID_KEEP_BINDLOW (1<<0)
+/** Flag for switch_id; see switch_id() for documentation */
+#define SWITCH_ID_WARN_IF_NO_CAPS (1<<1)
+int switch_id(const char *user, unsigned flags);
+
+#endif