[squid-dev] [PATCH] start workers as root
Tsantilas Christos
chtsanti at users.sourceforge.net
Fri Mar 6 11:18:56 UTC 2015
SMP workers in trunk start without root privileges. This results in
startup failures when workers need to use a privileged port (e.g., 443)
or other root-only features such as TPROXY.
This bug added with my "Moved PID file management from Coordinator to
Master" patch.
The problem is inside watch_child function which called after a
enter_suid() call, but the writePidFile() call, inside the
watch_child(), will leave suid mode before exit.
This patch removes the enter_suid/leave_suid cals from the writePidFile
and make the caller responsible for setting the root privileges if
required.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rootless-workers-t2.patch
Type: text/x-patch
Size: 5564 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150306/5cbcf953/attachment.bin>
More information about the squid-dev
mailing list