Commit 9544cc0
committed
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 Freund1 parent b168c5e commit 9544cc0
2 files changed
+16
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9727 | 9727 | | |
9728 | 9728 | | |
9729 | 9729 | | |
| 9730 | + | |
| 9731 | + | |
| 9732 | + | |
9730 | 9733 | | |
9731 | 9734 | | |
9732 | 9735 | | |
| |||
9747 | 9750 | | |
9748 | 9751 | | |
9749 | 9752 | | |
9750 | | - | |
9751 | | - | |
9752 | | - | |
9753 | | - | |
9754 | | - | |
9755 | 9753 | | |
9756 | 9754 | | |
9757 | 9755 | | |
| |||
10053 | 10051 | | |
10054 | 10052 | | |
10055 | 10053 | | |
| 10054 | + | |
| 10055 | + | |
| 10056 | + | |
10056 | 10057 | | |
10057 | 10058 | | |
10058 | 10059 | | |
| |||
10085 | 10086 | | |
10086 | 10087 | | |
10087 | 10088 | | |
10088 | | - | |
10089 | | - | |
10090 | | - | |
10091 | | - | |
10092 | | - | |
10093 | 10089 | | |
10094 | 10090 | | |
10095 | 10091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| |||
0 commit comments