mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-30 17:56:57 +00:00
344a25c133
- ZT will only drop root privileges if zerotier-one user exists. It is created by Debian postinst script - in other cases the user has to be created by administrator. - Linux >=4.3 with ambient capabilities is required, otherwise ZT will silently - "-U" option now also disables privileges dropping
10 lines
166 B
C++
10 lines
166 B
C++
#ifndef ZT_LINUXDROPPRIVILEGES_HPP
|
|
#define ZT_LINUXDROPPRIVILEGES_HPP
|
|
#include <string>
|
|
|
|
namespace ZeroTier {
|
|
void dropPrivileges(std::string homeDir);
|
|
}
|
|
|
|
#endif
|