Menu

#2 suid and groups

open
nobody
None
5
2003-04-04
2003-04-04
Scott Mazur
No

PersistentPerl-2.21
Perl 5.8.0
Apache 1.3.26
Apache-suexec 1.3.26
Kernel 2.4.19-24
Linux Mandrake 9.0

I've compiled to /usr/bin/suidperperl with 'DEFINE=...-
DIAMSUID". No errors, all tests passed.

Not using mod_persistentperl
I have simple suid script in cgi directory with:

#!/usr/bin/suidperperl -T

Running via apache, script alternates between 3 results:

1) Works fine
2) Works no suid
3) Script errors with:
No -e allowed in setuid scripts.
perperl_backend[7138]: perl_parse error
perperl[7136]: Cannot spawn backend process

Results usually cycle in order.

If I add option -- -M1 same thing, alternates between
results.

if I add option -- -r1 it always runs fine (and slow).

if I add option -- -gtest (with or without other options) it
always fails (result 3 above)

Apache config contains MinSpareServers 4, which might
explain the 3 cycled results (3 apache process always
running).

Is there a compile option to fix this or is it a bug?

Scott@littlefish.ca

Discussion


Log in to post a comment.