in reply to Privilege reduction with start_server / plackup
I think for Twiggy, you will have to create your own Twiggy subclass (or monkeypatch it) to override Twiggy::Server->start_listen:
sub Twiggy::Server::start_listen { my ($self, $app) = @_; my @listen = @{$self->{listen} || [ ($self->{host} || '') . ":" . +($self->{port} || 0) ]}; for my $listen (@listen) { push @{$self->{listen_guards}}, $self->_create_tcp_server($lis +ten, $app); } # XXX drop privileges here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Privilege reduction with start_server / plackup
by hippo (Archbishop) on Apr 17, 2020 at 09:45 UTC | |
by kikuchiyo (Hermit) on Apr 17, 2020 at 10:10 UTC |