Skip Menu |

This queue is for tickets about the FCGI-Spawn CPAN distribution.

Report information
The Basics
Id: 72408
Status: open
Priority: 0/
Queue: FCGI-Spawn

People
Owner: Nobody in particular
Requestors: john [...] nixnuts.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Fails to drop supplemental groups
This code doesn't drop privileges correctly: my $gid = getgrnam( $group ); die "Get group $group: $!" if $gid == 0; setgid( $gid ); $) = $gid; $( = $gid; die "Set group $group($gid): $!" if ( $( != $gid ) or ( $) != $gid ); example: # perl -e 'use POSIX; POSIX::setgid(99); $( = 99; $) = 99; print "$)\n";' 99 0 you should use $) = "$gid $gid"; instead of $) = $gid; example: # perl -e 'use POSIX; POSIX::setgid(99); $( = 99; $) = "99 99"; print "$)\n";' 99 99
Sending the previous mail has failed. Please contact your admin, they can find more details in the logs.
Sending the previous mail has failed. Please contact your admin, they can find more details in the logs.
commit a46ff729911fdee1b37e3b4e65ac05e8e398f27b was released with fix, tests for the fix, and more improvements