Skip site navigation (1) Skip section navigation (2)

system administration functions with hardcoded superuser checks

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: system administration functions with hardcoded superuser checks
Date: 2012-12-18 17:09:10
Message-ID: 50D0A336.7030605@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
There are some system administration functions that have hardcoded
superuser checks, specifically:

pg_reload_conf
pg_rotate_logfile
pg_read_file
pg_read_file_all
pg_read_binary_file
pg_read_binary_file_all
pg_stat_file
pg_ls_dir

Some of these are useful in monitoring or maintenance tools, and the
hardcoded superuser checks require that these tools run with maximum
privileges.  Couldn't we just install these functions without default
privileges and allow users to grant privileges as necessary?


Responses

pgsql-hackers by date

Next:From: Simon RiggsDate: 2012-12-18 17:29:01
Subject: Re: system administration functions with hardcoded superuser checks
Previous:From: Bruce MomjianDate: 2012-12-18 16:38:26
Subject: Re: [GENERAL] trouble with pg_upgrade 9.0 -> 9.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group