develooper Front page | perl.perl5.porters | Postings from December 2008

[perl #61592] 5.8.9 won't run suid program

Thread Next
December 22, 2008 07:11
[perl #61592] 5.8.9 won't run suid program
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #61592]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
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,

[Please do not change anything below this line]
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:
    osname=freebsd, osvers=6.3-release, archname=i386-freebsd
    uname='freebsd 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'
    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
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
    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
  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:

Environment for perl v5.8.9:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About