pgsql: Abandon the use of Perl's Safe.pm to enforce restrictions in

Поиск
Список
Период
Сортировка
От adunstan@postgresql.org (Andrew Dunstan)
Тема pgsql: Abandon the use of Perl's Safe.pm to enforce restrictions in
Дата
Msg-id 20100513164251.9C9857541D2@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Abandon the use of Perl's Safe.pm to enforce restrictions in plperl, as it is
fundamentally insecure. Instead apply an opmask to the whole interpreter that
imposes restrictions on unsafe operations. These restrictions are much harder
to subvert than is Safe.pm, since there is no container to be broken out of.
Backported to release 7.4.

In releases 7.4, 8.0 and 8.1 this also includes the necessary backporting of
the two interpreters model for plperl and plperlu adopted in release 8.2.

In versions 8.0 and up, the use of Perl's POSIX module to undo its locale
mangling on Windows has become insecure with these changes, so it is
replaced by our own routine, which is also faster.

Nice side effects of the changes include that it is now possible to use perl's
"strict" pragma in a natural way in plperl, and that perl's $a and
$b variables now work as expected in sort routines, and that function
compilation is significantly faster.

Tim Bunce and Andrew Dunstan, with reviews from Alex Hunsaker and
Alexey Klyukin.

Security: CVE-2010-1169

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/doc/src/sgml:
        plperl.sgml (r2.67 -> r2.67.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/plperl.sgml?r1=2.67&r2=2.67.2.1)
    pgsql/src/pl/plperl:
        GNUmakefile (r1.33.2.1 -> r1.33.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/GNUmakefile?r1=1.33.2.1&r2=1.33.2.2)
        plperl.c (r1.136.2.8 -> r1.136.2.9)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl.c?r1=1.136.2.8&r2=1.136.2.9)
    pgsql/src/pl/plperl/expected:
        plperl.out (r1.12 -> r1.12.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/expected/plperl.out?r1=1.12&r2=1.12.2.1)
    pgsql/src/pl/plperl/sql:
        plperl.sql (r1.13 -> r1.13.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/sql/plperl.sql?r1=1.13&r2=1.13.2.1)

Added Files:
-----------
    pgsql/src/pl/plperl:
        plperl_opmask.pl (r1.1.4.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl_opmask.pl?rev=1.1.4.1&content-type=text/x-cvsweb-markup)
    pgsql/src/pl/plperl/expected:
        plperlu_plperl.out (r1.1.4.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/expected/plperlu_plperl.out?rev=1.1.4.1&content-type=text/x-cvsweb-markup)
    pgsql/src/pl/plperl/sql:
        plperlu_plperl.sql (r1.1.4.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/sql/plperlu_plperl.sql?rev=1.1.4.1&content-type=text/x-cvsweb-markup)

В списке pgsql-committers по дате отправления:

Предыдущее
От: adunstan@postgresql.org (Andrew Dunstan)
Дата:
Сообщение: pgsql: Abandon the use of Perl's Safe.pm to enforce restrictions in
Следующее
От: adunstan@postgresql.org (Andrew Dunstan)
Дата:
Сообщение: pgsql: Abandon the use of Perl's Safe.pm to enforce restrictions in