Re: Can we still trust plperl? - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Can we still trust plperl?
Date
Msg-id 4B98AE89020000250002FC68@gw.wicourts.gov
Whole thread Raw
In response to Can we still trust plperl?  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> wrote:
> I'm wondering if we can reasonably continue to support plperl as
> a trusted language
> would still be plperlu, with the downside that the functions have
> to be installed by a superuser. One of my PGExperts colleagues
> told me his reaction was "Well, I might just as well use plperlu",
> and that pretty well sums up my reaction.
Well, I can see where running plperl with this module would be no
more safe than running plperlu, so I don't really understand the
purpose of the module; however, to install this module you need to:
| Set the PERL5OPT before starting postgres, to something like this:
|     PERL5OPT='-e "require q{plperlinit.pl}"'
| and create a plperlinit.pl file in the same directory as your
| postgres.conf file.
| In the plperlinit.pl file write the code to load this module, plus
| any others you want to load and share subroutines from. 
I don't see where plperl is unsafe unless you do those things.  A
user who can do those things can likely subvert your database in
other ways, no?
-Kevin


pgsql-hackers by date:

Previous
From: Kenneth Marshall
Date:
Subject: Re: Can we still trust plperl?
Next
From: Robert Haas
Date:
Subject: Re: renameatt() can rename attribute of index, sequence, ...