Add native chroot support to Tor
To run Tor in a chroot is somewhat difficult. Currently users have to create a custom chroot and then manually chroot before starting Tor. This is a difficult process for most people and in general it would be much easier to add an option to Tor.
I think that to do this the Tor process will need to open devices and log files before chrooting and then in the chroot, it will need to store all of the things normally stored in /var/lib/tor and it will need to have access to /etc/tor/torrc or a copy of it. It will need to use syslog rather than a file unless we pass an open fd (yuck).
Thoughts?