]> git.meshlink.io Git - meshlink/commit
try outgoing connections before chroot/drop_privs
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 5 Jun 2009 09:33:58 +0000 (13:33 +0400)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 5 Jun 2009 09:40:08 +0000 (11:40 +0200)
commit591c38eb38dbf0851bdebdd50b08d1bcbf6d7b0f
tree8ce597f6fe6c73da0e5fa66f99d868c4ced8f84d
parenta42a8dde45fe95aa3fd3f7f15a74c5166efe3633
try outgoing connections before chroot/drop_privs

When chrooted, we either need to force-initialize resolver
and/or nsswitch somehow (no clean way) or resolve all the
names we want before entering chroot jail.  The latter
looks cleaner, easier and it is actually safe because
we still don't talk with the remote nodes there, only
initiating outgoing connections.
src/tincd.c