From: Michael Tokarev Date: Mon, 18 May 2009 12:25:41 +0000 (+0400) Subject: Implement privilege dropping X-Git-Tag: release-1.0.10~77 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=ec316aa32e8567395a88c4583007f01ffae008ce;hp=ec316aa32e8567395a88c4583007f01ffae008ce Implement privilege dropping Add two options, -R/--chroot and -U/--user=user, to chroot to the config directory (where tinc.conf is located) and to perform setuid to the user specified, after all the initialization is done. What's left is handling of pid file since we can't remove it anymore. ---