1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-29 16:21:20 +03:00
Stephen Frost 0fdc8495bf Add default roles for file/program access
This patch adds new default roles named 'pg_read_server_files',
'pg_write_server_files', 'pg_execute_server_program' which
allow an administrator to GRANT to a non-superuser role the ability to
access server-side files or run programs through PostgreSQL (as the user
the database is running as).  Having one of these roles allows a
non-superuser to use server-side COPY to read, write, or with a program,
and to use file_fdw (if installed by a superuser and GRANT'd USAGE on
it) to read from files or run a program.

The existing misc file functions are also changed to allow a user with
the 'pg_read_server_files' default role to read any files on the
filesystem, matching the privileges given to that role through COPY and
file_fdw from above.

Reviewed-By: Michael Paquier
Discussion: https://postgr.es/m/20171231191939.GR2416%40tamriel.snowman.net
2018-04-06 14:47:10 -04:00
..
2017-11-30 11:03:20 -05:00
2017-11-30 11:03:20 -05:00
2017-11-30 11:03:20 -05:00
2018-01-19 11:49:22 -03:00
2017-11-30 11:03:20 -05:00
2017-11-30 11:03:20 -05:00
2017-11-30 11:03:20 -05:00
2018-01-22 08:43:06 -05:00
2017-11-30 11:03:20 -05:00
2017-11-30 11:03:20 -05:00
2017-11-30 11:03:20 -05:00
2017-11-23 09:44:28 -05:00
2017-11-30 11:03:20 -05:00
2017-11-23 09:44:28 -05:00
2018-03-30 09:18:02 +09:00
2018-04-05 20:36:23 +01:00
2017-11-23 09:44:28 -05:00
2017-10-17 15:10:33 -04:00
2018-03-26 18:26:27 +03:00
2018-03-22 17:42:03 +03:00
2018-01-19 11:49:22 -03:00
2017-11-30 11:03:20 -05:00
2017-11-30 11:03:20 -05:00
2017-11-23 09:44:28 -05:00
2017-11-23 09:44:28 -05:00