You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2021/04/12 12:18:13 UTC

svn commit: r1888670 - /spamassassin/trunk/spamd/spamd.raw

Author: hege
Date: Mon Apr 12 12:18:13 2021
New Revision: 1888670

URL: http://svn.apache.org/viewvc?rev=1888670&view=rev
Log:
Prevent flooding on setuid error

Modified:
    spamassassin/trunk/spamd/spamd.raw

Modified: spamassassin/trunk/spamd/spamd.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamd/spamd.raw?rev=1888670&r1=1888669&r2=1888670&view=diff
==============================================================================
--- spamassassin/trunk/spamd/spamd.raw (original)
+++ spamassassin/trunk/spamd/spamd.raw Mon Apr 12 12:18:13 2021
@@ -1392,10 +1392,10 @@ sub spawn {
       dbg("spamd: uid assignment ERRNO is $!\n");
       dbg("spamd: real user is $< \neff user is $> \nreal groups are $( \neff groups are $) \n");
 
-
       # keep the sanity check to catch problems like bug 3900 just in case
       if ( $> != $uuid and $> != ( $uuid - 2**32 ) ) {
-        die "spamd: setuid to uid $uuid failed (> = $>, < = $<)\n";
+        sleep(1); # prevent spamd fork flooding
+        die "spamd: setuid to uid $uuid failed (> = $>, < = $<), not started as root?\n";
       }
     }