SA Bugzilla – Bug 3926
spamd now setuid()ing before creating spamd pidfile
Last modified: 2004-11-05 08:34:05 UTC
When passing the -r argument to spamd to log the PID to disk, spamd seems to now setuid() to the user specified by the -u argument _first_. This kills the ability to log the PID to somewhere like /var/run/ prior to dropping privileges. This behavior seems to exist in the spamd packaged with both SpamAssassin 3.0.0 and 3.0.1, but the 2.6.x releases did not exhibit this. Is this intentional, or an oversight? It looks like bug3577 suggests switching to a model where the spamd parent maintains root privs and only having children setuid(), which would make this bug a moot point.
*** This bug has been marked as a duplicate of 3577 ***