From: Thomas J. <tho...@in...> - 2009-03-27 17:40:56
|
Hello together, attached is a patch which allows fetchmail to drop root privileges and run inside a chroot. The idea is to read the config file as root (as it contains passwords) and setup the logging. The root privileges get dropped after initialization. All new features are optional. This will leave a stale lockfile after the fetchmail run (not enough privileges to write to /var/run or even not accessible inside the chroot), fetchmail perfectly handles that on the next invocation. Upstream integration or feedback is welcome :-) The patch is against fetchmail 6.3.9. Have a nice weekend, Thomas |