You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/07/05 15:14:03 UTC

[Bug 3568] New: spamd creates log file before dropping privileges

http://bugzilla.spamassassin.org/show_bug.cgi?id=3568

           Summary: spamd creates log file before dropping privileges
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamc/spamd
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: tim@bishnet.net


I've noticed that spamd is creating it's logfile before it drops it's
privileges. This is a problem when I make use of the respawning by sending a HUP
signal. The permissions of the created logfile are such that the respawned
children can no longer write to it. I think :-)

I certainly get no logging after a respawning spamd (whilst I do if I manually
change permissions on the logfile).

I have two solutions;

1. Open the logfile later (after dropping privileges), although this may be a
problem for people who rely on the elevated privileges to create the logfile.

2. Have some flags to set the owner, group, permissions, etc, for the logfile
after opening it - something similar to the socket stuff?

No patch this time I'm afraid; I didn't know which solution to do.

Thanks



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.