]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move permissions check from do_pg_start_backup to pg_start_backup
authorMagnus Hagander <magnus@hagander.net>
Tue, 7 Jan 2014 16:47:52 +0000 (17:47 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 7 Jan 2014 17:00:36 +0000 (18:00 +0100)
commit026a91f86c1968da2120068d1ec453f412a1a046
tree471f4a647e4ea736b685d04cced922b849abac38
parent773e4d5e4dc48dc2c14f31f5d71d9dbf491fd6f5
Move permissions check from do_pg_start_backup to pg_start_backup

And the same for do_pg_stop_backup. The code in do_pg_* is not allowed
to access the catalogs. For manual base backups, the permissions
check can be handled in the calling function, and for streaming
base backups only users with the required permissions can get past
the authentication step in the first place.

Reported by Antonin Houska, diagnosed by Andres Freund
src/backend/access/transam/xlog.c