http://bugzilla.spamassassin.org/show_bug.cgi?id=3900
Summary: Spamd respawns children as root user.
Product: Spamassassin
Version: 3.0.0
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: spamc/spamd
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I've submitted this to the users mailing list and we came to the conclusion that
this is a bug.
I start spamd like this:
root# /usr/local/bin/spamd -L -x -u spamc -d -m 10
And when I execute `ps aux |grep spamd` right away, I get this:
spamc 26072 0.7 3.8 21276 19916 ?? Is 4:16PM 0:00.52
/usr/local/bin/spamd -L -x -u spamc -d -m 10
spamc 26073 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26074 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26075 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26076 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26077 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26078 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26079 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26080 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26081 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
spamc 26082 0.0 3.8 21276 19916 ?? I 4:16PM 0:00.00 spamd child
(perl)
A few minutes later I'll do the same thing and I'll get this instead:
spamc 26072 0.0 3.8 21276 19916 ?? Is 4:16PM 0:00.52
/usr/local/bin/spamd -L -x -u spamc -d -m 10
root 26073 0.0 3.9 21508 20144 ?? S 4:16PM 0:00.05 spamd child
(perl)
root 26074 0.0 3.9 21492 20116 ?? S 4:16PM 0:00.05 spamd child
(perl)
root 26075 0.0 3.9 21632 20260 ?? S 4:16PM 0:00.08 spamd child
(perl)
root 26076 0.0 3.9 21560 20140 ?? S 4:16PM 0:00.06 spamd child
(perl)
root 26077 0.1 3.9 21656 20248 ?? S 4:16PM 0:00.07 spamd child
(perl)
root 26078 0.3 3.9 21512 20096 ?? S 4:16PM 0:00.06 spamd child
(perl)
spamc 26079 0.0 3.8 21276 19916 ?? S 4:16PM 0:00.00 spamd child
(perl)
spamc 26080 0.0 3.8 21276 19916 ?? S 4:16PM 0:00.00 spamd child
(perl)
spamc 26081 0.0 3.8 21276 19916 ?? S 4:16PM 0:00.00 spamd child
(perl)
spamc 26082 0.0 3.8 21276 19916 ?? S 4:16PM 0:00.00 spamd child
(perl)
You can see here that the user some of the spamd children are running as have
been changed to root. A few minutes after that, they'll all be running as root.
This causes problems because every once in a while (approximately every 55
minutes) the parent process will try to read the Bayes database, which is now
owned by root with permissions that spamd can't use, and spamd will complain.
Operation is otherwise normal. The spamd children appear to be reading the bayes
database without any problems, as spamd logs its results to syslog and includes
BAYES_XX reasons.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.