Front page | perl.perl5.porters |
Postings from December 2008
[perl #61592] 5.8.9 won't run suid program
Thread Next
From:
fc@fc.freebsd.org
Date:
December 22, 2008 07:11
Subject:
[perl #61592] 5.8.9 won't run suid program
Message ID:
rt-3.6.HEAD-28035-1229923826-493.61592-75-0@perl.org
# New Ticket Created by fc@fc.freebsd.org
# Please include the string: [perl #61592]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61592 >
This is a bug report for perl from craig@animalhead.com,
generated with the help of perlbug 1.39 running under perl v5.8.9.
-----------------------------------------------------------------
[Please describe your issue here]
Built 5.8.9 from source with conditions identical to those under which our
internet hosting provider built the 5.8.7 under which their suid-cgi
control panel operates correctly.
But the resulting perl5.8.9 would not run the control panel. The following
error message was produced in error_log: 'suidperl needs (suid) fd script'.
grep told me that the message was in perl.c. An inspection of the code
just preceding the error message revealed that a line had been changed
incorrectly between 5.8.8 and 5.8.9:
in perl.c in release 5.8.9, line 3727 is if (*suidscript) {
should be if (*suidscript != 1) {
Making this change, rebuilding perl, and restarting Apache makes the
control panel operate correcty.
Releasing a simple clerical error like this does not speak well for the
testing of the suidperl feature, but there's a rumor it's deprecated.
You're welcome,
cmac
www.animalhead.com
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=critical
---
Site configuration information for perl v5.8.9:
Configured by <private> at Sun Dec 21 12:20:21 PST 2008.
Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
Platform:
osname=freebsd, osvers=6.3-release, archname=i386-freebsd
uname='freebsd sakomina.securesites.net 6.3-release freebsd 6.3-release #2: wed jun 25 14:30:46 mdt 2008 root@fc:usrsrcsysi386compilevkern i386 '
config_args='-Dd_dosuid=define -Dotherlibdirs=/usr/local/lib/perl5/5.8.7:/usr/local/lib/perl5/5.00503:/usr/local/lib/site_perl -Dvendorprefix=/usr/local -Dmyhostname=fc -Dmydomain=freebsd.org'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-O',
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.4.6 [FreeBSD] 20060305', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lgdbm -lm -lcrypt -lutil -lc
perllibs=-lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.8.9:
/usr/local/lib/perl5/5.8.9/i386-freebsd
/usr/local/lib/perl5/5.8.9
/usr/local/lib/perl5/site_perl/5.8.9/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.9
/usr/local/lib/perl5/site_perl/5.8.8/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/vendor_perl/5.8.9/i386-freebsd
/usr/local/lib/perl5/vendor_perl/5.8.9
/usr/local/lib/perl5/vendor_perl/5.8.7/i386-freebsd
/usr/local/lib/perl5/vendor_perl/5.8.7
/usr/local/lib/perl5/vendor_perl
/usr/local/lib/perl5/5.8.7/i386-freebsd
/usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/5.00503
/usr/local/lib/site_perl
.
---
Environment for perl v5.8.9:
HOME=/home/<private>
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/local/apache2/bin:/home/sakomina/bin
PERL_BADLANG (unset)
SHELL=/usr/local/bin/bash
Thread Next
-
[perl #61592] 5.8.9 won't run suid program
by fc@fc.freebsd.org