git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6c3a7ba) | patch
Restrict lo_import()/lo_export() via SQL permissions not hard-wired checks.
Thu, 9 Nov 2017 17:36:58 +0000 (12:36 -0500)
Thu, 9 Nov 2017 17:36:58 +0000 (12:36 -0500)
commit 5ecc0d738e5864848bbc2d1d97e56d5846624ba2
Restrict lo_import()/lo_export() via SQL permissions not hard-wired checks.

While it's generally unwise to give permissions on these functions to
anyone but a superuser, we've been moving away from hard-wired permission
checks inside functions in favor of using the SQL permission system to
control access. Bring lo_import() and lo_export() into compliance with
that approach.

In particular, this removes the manual configuration option
ALLOW_DANGEROUS_LO_FUNCTIONS. That dates back to 1999 (commit 4cd4a54c8);
it's unlikely anyone has used it in many years. Moreover, if you really
want such behavior, now you can get it with GRANT ... TO PUBLIC instead.

Michael Paquier

Discussion: https://postgr.es/m/CAB7nPqRHmNOYbETnc_2EjsuzSM00Z+BWKv9sy6tnvSd5gWT_JA@mail.gmail.com
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/libpq/be-fsstubs.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/pg_config_manual.h diff | blob | blame | history
src/test/regress/expected/privileges.out diff | blob | blame | history
src/test/regress/sql/privileges.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /