http://bugzilla.spamassassin.org/show_bug.cgi?id=3586
------- Additional Comments From [EMAIL PROTECTED] 2004-07-12 14:44 -------
Subject: Re: failed sanity check
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>he also has the perl-5.6.1_15 ports version installed:
>
>dosuid = define
>seteuid = undef
>setresuid = define
>setreuid = define
>suidsafe = undef
>
>RUID: 0, EUID: 0
>RUID: 0, EUID: 1000
>RUID: 1000, EUID: 1000
Good -- that's what I would have expected to happen, what should
be happening, and what's happening elsewhere.
It now strongly suggests a perl bug on *BSD:
- Linux, perl version 5.8.x: ok
- Solaris, perl version ???: ok
- MacOS X, perl version ???: fails
- FreeBSD, perl version 5.005: fails
- FreeBSD, perl version 5.6.1: ok
I wonder if freebsd fails to support setting the real uid to non-root if
"seteuid" is defined in Config?
setreuid() would fix this. could freebsd-ers try:
perl -e 'sub p {print "RUID: $<, EUID: $>\n";} p; use POSIX qw(setreuid);
POSIX::setreuid(1000,1000); p;'
or setresuid():
perl -e 'sub p {print "RUID: $<, EUID: $>\n";} p; use POSIX qw(setresuid);
POSIX::setresuid(1000,1000,1000); p;'
however, if those aren't exported, we can't use them :(
PS: the "suidsafe" stuff is for running setuid scripts, not for this
situation, so it can be discounted.
- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS
iD8DBQFA8wYxQTcbUG5Y7woRAj9pAJ4/z4kABmCDFr4vZSjdMPDwCipsMQCfSt7o
lCC0wrb+zWuXkqlQpHn16Rw=
=8I4s
-----END PGP SIGNATURE-----
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.