[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add sys/capability.h and sys/prctl.h includes in setuid.c



commit be40ad51b68fa87bafb88e55db7856d373274a4d
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Jun 28 15:34:51 2018 -0400

    Add sys/capability.h and sys/prctl.h includes in setuid.c
---
 src/lib/process/setuid.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/process/setuid.c b/src/lib/process/setuid.c
index 6c6cb48f5..fa1cdc0f3 100644
--- a/src/lib/process/setuid.c
+++ b/src/lib/process/setuid.c
@@ -28,6 +28,12 @@
 #ifdef HAVE_PWD_H
 #include <pwd.h>
 #endif
+#ifdef HAVE_SYS_CAPABILITY_H
+#include <sys/capability.h>
+#endif
+#ifdef HAVE_SYS_PRCTL_H
+#include <sys/prctl.h>
+#endif
 
 #include <errno.h>
 #include <string.h>

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits