mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-12 20:28:27 +00:00
Lock down individual files in networks.d instead of directory since directory ACLs are more complex on Windows.
This commit is contained in:
@ -419,7 +419,7 @@ Node::ReasonForTermination Node::run()
|
||||
}
|
||||
Utils::lockDownFile(identitySecretPath.c_str(),false);
|
||||
|
||||
// Make sure networks.d exists and is secure
|
||||
// Make sure networks.d exists
|
||||
{
|
||||
std::string networksDotD(_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d");
|
||||
#ifdef __WINDOWS__
|
||||
@ -427,7 +427,6 @@ Node::ReasonForTermination Node::run()
|
||||
#else
|
||||
mkdir(networksDotD.c_str(),0700);
|
||||
#endif
|
||||
Utils::lockDownFile(networksDotD.c_str(),true);
|
||||
}
|
||||
|
||||
// Load or generate config authentication secret
|
||||
|
Reference in New Issue
Block a user