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





------- Additional Comments From [EMAIL PROTECTED]  2004-07-16 20:25 -------
Subject: Re:  [review] perl setuid fails, breaking spamd in FreeBSD, MacOS X

On Fri, Jul 16, 2004 at 03:13:02PM -0700, [EMAIL PROTECTED] wrote:
> The patch won't help in MacOS X. We should document somewhere what 
> functionality

Ah, good point.  I forgot about that whole "no setuid" thing. <sigh>

> will not work in MacOS X with a reference to perl bug -- perl#24122 and the
> discussion at
> http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-10/msg00495.html

Indeed.

> Should we create a spamd/README.MacOSX file?

I'm thinking a Mac OS X section of the spamd/READMe file. ;)

> Looking at patch... What about the following code in spamd.raw line 670
> 
>   # Change GID
>   $) = "$ugid $ugid";    # effective gid
>   $( = $ugid;            # real gid

Hrm.  $) works fine, $( doesn't. :(  stupid mac os x!

>   # Change UID
>   $> = $uuid;            # effective uid
>   $< = $uuid;            # real uid. we now cannot setuid anymore

yeah, we should reverse these.

> and line 1018,1364, 1507, and 1551: Do we know that $< == 0 and $> == 0 at 
> that
> point, or do we need some checking? Those three places all say:
> 
>     $) = "$gid $gid";                   # eGID
>     $> = $uid;                          # eUID

I believe e[ug]id works fine everywhere.

> Also, do we need to do anything similar for $) and $( ?

good question.  anyone have a bsd box we can try this on?





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

Reply via email to