summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-05-09 13:51:32 -0700
committerJoseph Henry <josephjah@gmail.com>2018-05-09 13:51:32 -0700
commit535ba8a207f7cfc2ce6e8ba2e44442896ffffc29 (patch)
tree20a89a64a382e94ff132dcbed312d41c1428b4c3 /one.cpp
parent43331d3fe849bd2d17c8e3e774ef7e47c84d7ce7 (diff)
downloadinfinitytier-535ba8a207f7cfc2ce6e8ba2e44442896ffffc29.tar.gz
infinitytier-535ba8a207f7cfc2ce6e8ba2e44442896ffffc29.zip
Consolidated powerpc64le machine types, added 32-bit powerpc machine type and a flag to disable use of Linux capabilities
Diffstat (limited to 'one.cpp')
-rw-r--r--one.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/one.cpp b/one.cpp
index 9ebc83c1..b770451c 100644
--- a/one.cpp
+++ b/one.cpp
@@ -972,7 +972,7 @@ static void _sighandlerQuit(int sig)
#endif
// Drop privileges on Linux, if supported by libc etc. and "zerotier-one" user exists on system
-#ifdef __LINUX__
+#if defined(__LINUX__) && !defined(ZT_NO_CAPABILITIES)
#ifndef PR_CAP_AMBIENT
#define PR_CAP_AMBIENT 47
#define PR_CAP_AMBIENT_IS_SET 1