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 2005/07/08 06:32:40 UTC

[Bug 4468] New: "BSD Hates setruid()"

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

           Summary: "BSD Hates setruid()"
           Product: Spamassassin
           Version: 3.0.4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: spamassassin
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: lwilton@earthlink.net


(BSD version unknown.)

>From a recent message on the users list:

FOund the problem.  From the logs:

Thu Jul  7 21:55:45 2005 [4390] dbg: spamd: initial attempt to change real uid 
failed, trying BSD workaround

Thu Jul  7 21:55:45 2005 [4390] error: setruid() not implemented 
at /usr/contrib/bin/spamd line 870.  

BSD HATES setruid().  I had to disable this in openwebmail
for me to get openwebmail to work.  You may want to add code that disables
setruid in BSD.



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

[Bug 4468] "BSD Hates setruid()"

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4468


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From jm@jmason.org  2005-07-08 18:20 -------
noted via email:

>> BSD HATES setruid().  I had to disable this in openwebmail for me to
>> get openwebmail to work.  You may want to add code that disables
>> setruid in BSD.
> 
> That might be tricky.  We don't have any code that *enables* it.
> 
>> exit=1 Fri Jul  8 14:31:02 PDT 2005; cd /home/jm/ftp/spamassassin/t
>> jm 29...; grep -r setruid ../lib ../spamd/spamd.raw
>> exit=1 Fri Jul  8 14:31:07 PDT 2005; cd /home/jm/ftp/spamassassin/t
>> jm 30...; grep -r setreuid ../lib ../spamd/spamd.raw
>> exit=1 Fri Jul  8 14:31:10 PDT 2005; cd /home/jm/ftp/spamassassin/t
>> jm 31...;
> 
> We only use the perl builtins $> and $< to manipulate UIDs --
> if there's errors from that, you need to find a new perl that
> supports a working form of UID-changing on your platform.

this is a perl bug, not an SpamAssasin one -- we need a working setuid/euid
implementation



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

[Bug 4468] "BSD Hates setruid()"

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4468


Bob@Menschel.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|Undefined                   |3.1.0




------- Additional Comments From Bob@Menschel.net  2005-07-07 23:34 -------
Triage: Confirmed, per http://www.unixpapa.com/incnote/setuid.html -- "The other
two functions, setruid() and setreuid() were depreciated." setreuid apparently
"came back," but setruid has been deleted from BSD. 



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