develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134169] 5.30.0 - Unable to set supplementary group IDs

Thread Previous
From:
Tony Cook via RT
Date:
June 17, 2019 05:59
Subject:
[perl #134169] 5.30.0 - Unable to set supplementary group IDs
Message ID:
rt-4.0.24-17617-1560751181-1404.134169-15-0@perl.org
On Mon, 03 Jun 2019 16:26:59 -0700, manuel@mausz.at wrote:
> I've now replied two times and neither message got attached to this
> ticket. In case they do pop up some time later please ignore them :-)
> 
> On Mon, 03 Jun 2019 13:46:11 -0700, jkeenan wrote:
> > Could you provide a brief example of how, previously, you would have
> > expected to be able to set these supplementary grou IDs?
> 
> A quick example is:
> > my $supgid = getgrnam("users");
> > print "old groups=", $), $/;
> > $) = "$) $supgid";
> > print "new groups=", $), $/;
> 
> This should add the "users" group to your current supplementary
> groups. On Linux you need CAP_SETGID capability (or root) for this to
> work.
> 
> On Mon, 03 Jun 2019 14:40:28 -0700, public@khwilliamson.com wrote:
> > Could you submit a patch against blead?  We also need a test.
> >
> > The github repository is only a mirror, and is supposed to not be
> > able
> > to accept pull requests, but that can't be turned off, unfortunately.
> 
> Attached is both my original patch against HEAD and a test I quickly
> pulled together. However I have no idea if all supported perl
> platforms
> will correctly skip respectively test the supplementary groups.
> I chose nobody as additional group as it should be available on all
> unix
> like platforms.

Which system did you test this on?

My Debian system doesn't have a *group* called "nobody", though it does have a user.

There is a group called "nogroup" (but that appears to be Debian specific.)

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=134169

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About