You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Dan Mahoney, System Admin" <da...@prime.gushi.org> on 2005/09/06 18:58:11 UTC

Re: [sa-list] Re: Spamc, spamassassin, different scores

On Tue, 6 Sep 2005, Matt Kettler wrote:

> Andy Jezierski wrote:
>>
>>
>> Are you running the spamassassin command under the same userid as spamd
>> is running under? Looks like spamd is using bayes that spamassassin did
>> not have, and spamassassin had a negative AWL score that spamd didn't
>> have.
>
>
> Definitely not.
>
> Look at the prompts. Miguel is running spamassassin as root.
>
> Miguel is running spamc as root, but spamd will *NEVER* scan mail as root. It
> will setuid itself to nobody if it finds this situation.

At least, not on a recent version -- this was a rather prominent bug under 
many OSen.

--

"One...plus two...plus one...plus one."

-Tim Curry, Clue

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------


Re: [sa-list] Re: Spamc, spamassassin, different scores

Posted by Matt Kettler <mk...@evi-inc.com>.
Dan Mahoney, System Admin wrote:
>>
>> Definitely not.
>>
>> Look at the prompts. Miguel is running spamassassin as root.
>>
>> Miguel is running spamc as root, but spamd will *NEVER* scan mail as
>> root. It
>> will setuid itself to nobody if it finds this situation.
> 
> 
> At least, not on a recent version -- this was a rather prominent bug
> under many OSen.

Very true, that is a definite caveat to my statement that "spamd will never scan
mail as root". I suppose a better statement would be "spamd should never scan
mail as root".

That said, AFAIK the "many OSen" are limited *BSD variants, including Mac OS X.

In this case RedHat is the OS, which is Linux kernel based, which I think is
immune to this issue due to differences in how the Linux kernel handles setuid
as compared to the BSD kernel.